:root {
    --rosegold: #b76e79;
    --rosegold-light: #f2d1d9;
    --rosegold-dark: #7a3e47;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --blur-bg: blur(10px);
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: linear-gradient(135deg, #fbe8eb, #f2d1d9);
    color: var(--rosegold-dark);
}

/* Home */
.gallery .slide img { display: block; margin: 0 auto; max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,0.3); transition: transform 0.3s ease; }
.gallery .slide img:hover { transform: scale(1.05); }
@media (max-width: 768px) { .gallery .slide img { max-height: 60vh; } }
@media (max-width: 576px) { .gallery .slide img { max-height: 50vh; } }

/* Sticky header/footer */
.sticky-header, .sticky-footer {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-bg);
    -webkit-backdrop-filter: var(--blur-bg);
    color: var(--rosegold);
    text-align: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sticky-header { position: sticky; top: 0; z-index: 1000; }
.sticky-footer { position: fixed; bottom: 0; width: 100%; font-size: 0.9rem; }

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 25px;
}
nav a {
    color: var(--rosegold);
    text-decoration: none;
    font-weight: bold;
    padding: 8px 14px;
    border-radius: 12px;
    transition: all 0.3s ease;
}
nav a:hover {
    background: var(--rosegold);
    color: #fff;
    box-shadow: 0 4px 15px rgba(183,110,121,0.4);
}

/* Footer icon */
.footer-icon { width: 20px; height: 20px; vertical-align: middle; margin-left: 6px; transition: transform 0.3s ease, filter 0.3s ease; }
.sticky-footer a:hover .footer-icon { transform: scale(1.2); filter: drop-shadow(0 0 5px rgba(183,110,121,0.7)); }

/* Gallery tiles */
.gallery-tiles, .gallery { display: flex; flex-wrap: wrap; justify-content: center; margin: 20px; padding-bottom: 60px; }
.gallery-tiles .tile, .gallery .slide { border-radius: 12px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.gallery-tiles .tile img, .gallery img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; border-radius: 10px; transition: transform 0.3s ease; }
.gallery-tiles .tile:hover, .gallery img:hover { transform: scale(1.05); box-shadow: 0 6px 18px rgba(0,0,0,0.5); }

/* Responsive gallery tiles */
@media (min-width: 1200px){.gallery-tiles .tile{width:calc(20% - 10px);}}
@media (min-width: 992px) and (max-width: 1199px){.gallery-tiles .tile{width:calc(25% - 10px);}}
@media (min-width: 768px) and (max-width: 991px){.gallery-tiles .tile{width:calc(33.33% - 10px);}}
@media (min-width: 576px) and (max-width: 767px){.gallery-tiles .tile{width:calc(50% - 10px);}}
@media (max-width: 575px){.gallery-tiles .tile{width:100%;}}

/* Modal styles */
.modal { display: none; position: fixed; z-index: 1001; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.8); justify-content: center; align-items: center; }
.modal-content { margin: auto; display: block; max-width: 90%; max-height: 90%; object-fit: contain; animation: zoom 0.6s; box-shadow: 0 0 30px 10px rgba(183,110,121,0.7); }
@keyframes zoom { from {transform: scale(0);} to {transform: scale(1);} }
.close { position: absolute; top: 20px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer; }
.close:hover, .close:focus { color: #bbb; }

/* Modal navigation */
.prev, .next { cursor: pointer; position: absolute; top: 50%; width: auto; padding: 16px; margin-top: -22px; color: white; font-weight: bold; font-size: 20px; border-radius: 10px; background-color: rgba(0,0,0,0.5); transition: 0.3s; user-select: none; }
.prev { left: 10px; } .next { right: 10px; }
.prev:hover, .next:hover { background-color: rgba(0,0,0,0.8); }

/* Upload Section */
.upload-section { display: flex; justify-content: center; align-items: flex-start; padding: 40px 20px; gap: 2rem;  padding-bottom: 120px; }
.upload-section form {
    width: 100%; max-width: 450px; padding: 30px; border-radius: 15px;
    background: rgba(255,255,255,0.05); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(183,110,121,0.3); box-shadow: 0 10px 25px rgba(0,0,0,0.3); color: #fff; display: flex; flex-direction: column; gap: 20px;
}
.upload-section label { font-weight: 600; color: var(--rosegold); margin-bottom: 5px; }
.upload-section input[type="password"], .upload-section input[type="file"] {
    padding: 12px 15px; border-radius: 10px; border: 1px solid rgba(183,110,121,0.5); 
    background-color: rgba(255,255,255,0.05); color: #fff; font-size: 1rem; transition: all 0.3s ease;
}
.upload-section input[type="password"]:focus, .upload-section input[type="file"]:focus {
    outline: none; border-color: var(--rosegold); box-shadow: 0 0 10px rgba(183,110,121,0.5);
}
.upload-section input[type="password"] { color: var(--rosegold); 
}
.upload-section input[type="submit"] {
    padding: 14px 20px; border-radius: 12px; border: none; background-color: var(--rosegold);
    color: #fff; font-weight: bold; font-size: 1.1rem; cursor: pointer; transition: all 0.3s ease;
}
.upload-section input[type="submit"]:hover { background-color: rgba(183,110,121,0.8); box-shadow: 0 5px 15px rgba(183,110,121,0.5); }
.upload-section input[type="submit"]:active { transform: scale(0.98); }

/* Drag & Drop */
.drag-drop-area { position: relative; padding: 40px; border: 2px dashed rgba(183,110,121,0.6); border-radius: 15px; background: rgba(255,255,255,0.03); text-align: center; cursor: pointer; transition: all 0.3s ease; color: #fff; font-weight: 500; }
.drag-drop-area.dragover { background: rgba(183,110,121,0.1); border-color: var(--rosegold); color: var(--rosegold); }
.drag-drop-area p { margin: 0; font-size: 1rem; color: var(--rosegold); }
.drag-drop-area input[type="file"] { position: absolute; width: 100%; height: 100%; top: 0; left: 0; opacity: 0; cursor: pointer; }

/* Instructions */
.instructions {
    margin-top: 0;
    padding: 20px 25px;
    border-radius: 15px;
    background: var(--glass-bg);
    backdrop-filter: var(--blur-bg); -webkit-backdrop-filter: var(--blur-bg);
    border: 1px solid rgba(183,110,121,0.3);
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    color: var(--rosegold-dark);
    font-size: 1rem; line-height: 1.6;
}
.instructions h2 { font-size: 1.3rem; margin-bottom: 12px; color: var(--rosegold); text-align: center; }
.instructions ol, .instructions ul { padding-left: 20px; margin-bottom: 10px; }
.instructions code { background: var(--rosegold-light); color: var(--rosegold-dark); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }
.instructions strong { color: var(--rosegold-dark); }
.instructions hr { margin: 25px 0; border: none; border-top: 1px solid rgba(183,110,121,0.3); }

/* Mobile Layout */
@media (max-width: 768px) {
    .upload-section { display: block; padding: 20px;  padding-bottom: 120px; }
    .upload-section form { margin: 0 auto; }
    .instructions { margin-top: 1.5rem; }
}

/* Extra small screens */
@media (max-width: 576px) {
    .drag-drop-area { padding: 30px 10px; font-size: 0.95rem; }
    .upload-section form { padding: 20px; }
    .instructions { padding: 15px 15px; font-size: 0.95rem; }
}
