html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* --- Page Hero (Inner Pages) --- */
.page-hero {
    height: 40vh;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    margin-top: 80px; /* Offset for fixed header */
    padding: 0 2rem;
    background: linear-gradient(135deg, rgba(15,23,42,0.8) 0%, rgba(6,182,212,0.5) 100%), 
                url('https://antoniouglass.gr/wp-content/uploads/2016/03/psifiaki10.jpg') center/cover no-repeat;
    transition: background 0.6s ease;
}
body.dark-theme .page-hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(220, 38, 38, 0.35) 100%), 
                url('https://antoniouglass.gr/wp-content/uploads/2016/03/psifiaki10.jpg') center/cover no-repeat;
}
.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.page-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* --- Gallery Section --- */
.gallery-section {
    padding: 5rem 0;
    background: var(--white);
    transition: background 0.4s ease;
}
.gallery-group {
    margin-bottom: 5rem;
}
.gallery-group:last-child {
    margin-bottom: 0;
}
.gallery-group-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.gallery-item {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}
.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.05);
}
body.dark-theme .gallery-item:hover {
    filter: brightness(1.15);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.2);
}

/* --- Lightbox Overlay --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}
.lightbox.active {
    display: flex;
}
.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}
.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
    background: rgba(0,0,0,0.6);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    max-width: 80%;
    backdrop-filter: blur(5px);
}

/* Lightbox Controls */
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    z-index: 2001;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    color: var(--accent);
    transform: scale(1.1);
}
body.dark-theme .lightbox-close:hover,
body.dark-theme .lightbox-prev:hover,
body.dark-theme .lightbox-next:hover {
    color: #ef4444;
}
.lightbox-close {
    top: 20px;
    right: 35px;
}
.lightbox-prev {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}
.lightbox-next {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}
/* Fix hover transform for arrows so they don't jump vertically */
.lightbox-prev:hover { transform: translateY(-50%) scale(1.1); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.1); }

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-hero h1 { font-size: 2rem; }
    .lightbox-prev { left: 10px; font-size: 2rem; }
    .lightbox-next { right: 10px; font-size: 2rem; }
    .lightbox-close { top: 10px; right: 20px; font-size: 2.5rem; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
    .gallery-item { height: 150px; }
}