/* --------------------------------------------------
   GLOBAL RESET
-------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #000;
    color: #eee;
    line-height: 1.5;
    overflow-x: hidden;
}

/* --------------------------------------------------
   GALLERY AUDIO BUTTON (BOTTOM RIGHT)
-------------------------------------------------- */
.mute-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.45);
    color: white;
    border: none;
    padding: 12px 14px;
    font-size: 22px;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    backdrop-filter: blur(4px);
    transition: background 0.2s ease;
    z-index: 1000000000;
}

.mute-btn:hover {
    background: rgba(0,0,0,0.75);
}

/* --------------------------------------------------
   FULLSCREEN AUDIO BUTTON (BOTTOM RIGHT)
-------------------------------------------------- */
.modal-sound-btn {
    position: absolute;
    bottom: 20px;   /* moved from top to bottom */
    right: 20px;
    background: rgba(0,0,0,0.45);
    color: white;
    border: none;
    padding: 12px 14px;
    font-size: 28px;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    backdrop-filter: blur(4px);
    transition: background 0.2s ease;
    z-index: 2000000002;
}

.modal-sound-btn:hover {
    background: rgba(0,0,0,0.75);
}


/* --------------------------------------------------
   HEADER
-------------------------------------------------- */
.header {
    background: linear-gradient(135deg, #000000, #333333);
    color: white;
    padding: 20px;
    text-align: center;
}

.header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

/* --------------------------------------------------
   NAVIGATION
-------------------------------------------------- */
.nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.nav a {
    color: #eee;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: opacity 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .nav a:hover {
        opacity: 0.7;
    }
}

/* --------------------------------------------------
   INTRO TEXT
-------------------------------------------------- */
.intro {
    text-align: center;
    padding: 10px 20px;
    font-size: 1.1rem;
}

/* --------------------------------------------------
   CATEGORY GRID
-------------------------------------------------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.category-card {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    border: 1px solid #333;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card a {
    text-decoration: none;
    color: inherit;
}

.category-icon {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

@media (hover: hover) and (pointer: fine) {
    .category-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.4);
    }
}

/* --------------------------------------------------
   GALLERY
-------------------------------------------------- */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px 0;
}

.gallery img {
    width: 300px;
    height: auto;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;

    padding: 6px;
    background: #3b2f23;
    border: 3px solid #c7b08a;

    box-shadow:
        inset 0 0 4px rgba(0,0,0,0.5),
        inset 0 0 10px rgba(0,0,0,0.3),
        0 4px 10px rgba(0,0,0,0.6);
}

@media (hover: hover) and (pointer: fine) {
    .gallery img:hover {
        transform: scale(1.03);
        opacity: 0.9;
    }
}

/* --------------------------------------------------
   CAPTIONS
-------------------------------------------------- */
.thumb-caption {
    text-align: center;
    font-size: 0.9rem;
    color: #fff;
    font-weight: bold;
    margin-top: 5px;
}

#modal-caption {
    margin-top: 15px;
    text-align: center;
    font-size: 1.1rem;
    color: #fff;
    font-weight: bold;
    padding: 10px;
}

/* --------------------------------------------------
   MODAL (FULLSCREEN)
-------------------------------------------------- */
.modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.9);

    display: none; /* JS switches to flex */
    justify-content: center;
    align-items: center;

    z-index: 2000000000;
}

.modal-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-content {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 8px;
}
.modal-content {
    position: relative;
    z-index: 1999999999;
}

/* --------------------------------------------------
   MODAL CLOSE BUTTON
-------------------------------------------------- */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 2000000001;
}

/* --------------------------------------------------
   MODAL ARROWS
-------------------------------------------------- */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 30px;
    user-select: none;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    z-index: 2000000001;
}

#left-arrow { left: 60px; }
#right-arrow { right: 60px; }

.arrow-icon {
    width: 40px;
    height: 40px;
    stroke: white;
    stroke-width: 2;
    fill: none;
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .arrow:hover { opacity: 1; }
}

/* Hide arrows on mobile */
@media (max-width: 700px) {
    #left-arrow,
    #right-arrow {
        display: none !important;
    }
}

/* --------------------------------------------------
   ADMIN BUTTON
-------------------------------------------------- */
.ca-btn-square {
    width: 34px;
    height: 34px;
    background: #000;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .ca-btn-square:hover {
        background: #111;
        border-color: #666;
    }
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
.footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.slideshow-control {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 30px;
    user-select: none;
    z-index: 2000000003 !important;
    transition: background 0.2s ease;
}

.slideshow-control:hover {
    background: rgba(0,0,0,0.8);
}

