/* Top Page Styles */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Page Section headers */
.page-header {
    margin-top: 40px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.page-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 400;
}

/* Gallery Grid Styles */
.gallery-grid {
    column-count: 3;
    column-gap: 20px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.2s;
}

/* Hover Effect: Smooth Lift and Shadow */
.gallery-item img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
    transition: all 0.4s ease;
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 2px solid #fff;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    font-family: sans-serif;
    z-index: 1001;
}

/* Subpage Content wrapper */
.page-content {
    padding: 0 20px 40px 0;
    max-width: 100%;
}

@media (max-width: 1024px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .page-content {
        padding: 0 20px;
        box-sizing: border-box;
    }

    .gallery-grid {
        column-count: 1;
        gap: 15px;
    }

    .slideshow-container {
        height: calc(100vh - 60px);
    }
}

/* About Page Styles */
.about-page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 40px;
    box-sizing: border-box;
}

.about-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20px;
}

.about-img {
    width: 100%;
    height: 50vh;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.about-text {
    text-align: center;
    font-family: var(--font-serif);
    font-variant-numeric: lining-nums;
    color: #333;
}

.creator-info {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.8;
    letter-spacing: 0.05em;
}

.site-desc {
    font-size: 14px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .about-page-container {
        height: auto;
        min-height: calc(100vh - 60px);
        padding: 80px 20px 40px;
        margin-top: 0;
    }

    .about-img {
        height: 250px;
        margin-bottom: 30px;
    }

    .about-content {
        padding-top: 0;
        justify-content: flex-start;
    }

    .page-header {
        margin-top: 0;
    }
}

/* Terms of Use Styles */
.terms-content {
    max-width: 800px;
    margin: 0 auto;
    font-family: var(--font-sans);
    line-height: 1.8;
    color: var(--text-color);
}

.terms-section {
    margin-bottom: 40px;
}

.terms-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    font-family: var(--font-serif);
    font-feature-settings: "palt";
}

.terms-section p {
    margin-bottom: 15px;
    font-size: 15px;
}

.terms-section ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.terms-section li {
    margin-bottom: 8px;
    font-size: 15px;
}