/* Photo Gallery Styles - Symmetrical navigation buttons with no underlines */
.photo-gallery-container {
    margin: 1.5rem 0;
    width: 100%;
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.photo-gallery-container h2 {
    margin-bottom: 1.5rem;
    color: var(--body-text-color, #333);
    text-align: center;
    font-weight: 800;
    /*font-size: clamp(1.2rem, 4.3vw, 1.6rem)*/;
}

/* Thumbnail gallery */
.photo-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 1rem;
}

.thumbnail-item {
    width: 110px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
    flex: 0 0 auto;
}

.thumbnail-item:hover {
    transform: scale(1.05);
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* PDF thumbnail styling */
.pdf-thumbnail {
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-sizing: border-box;
    padding: 5px;
}

.pdf-thumbnail i {
    font-size: 28px;
    color: #e74c3c;
    margin-bottom: 5px;
}

/* Filename displayed inside the thumbnail */
.pdf-filename {
    font-size: 9px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

/* PDF container in modal */
.pdf-container {
    width: 100%;
    height: 90vh;
    max-width: 90vw;
    margin: 0 auto;
    background-color: #f5f5f5;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.pdf-embed {
    width: 100%;
    height: 100%;
    border: none;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.95);
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Close button */
.close {
    position: fixed;
    top: 2vh;
    right: 2vw;
    width: 3rem;
    height: 3rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
    font-size: 1.5rem;
    color: #333;
    z-index: 10000;
    text-decoration: none;
}

.close:hover {
    transform: scale(1.1);
    text-decoration: none;
}

/* Next & previous buttons - symmetrically positioned */
.prev,
.next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    background: white;
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
    user-select: none;
    -webkit-user-select: none;
    z-index: 10000;
    text-decoration: none;
}

.prev {
    left: 2vw; /* Match right button's spacing */
}

.next {
    right: 2vw;
}

.prev:hover,
.next:hover {
    transform: translateY(-50%) scale(1.1);
    text-decoration: none;
    border-bottom: none;
    outline: none;
}

/* Remove any underlines or focus styling */
.prev:focus,
.next:focus,
.close:focus,
.prev:active,
.next:active, 
.close:active {
    text-decoration: none;
    border-bottom: none;
    outline: none;
}

.prev i,
.next i,
.close i {
    font-size: 1.5rem;
    text-decoration: none;
}

/* Slides - centered container */
.slides {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 90%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image container to enforce centering */
.image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Maximized image display */
.fullsize-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Number text (1/3 etc) */
.numbertext {
    position: fixed;
    bottom: 2vh;
    left: 50%;
    transform: translateX(-50%);
    color: #333;
    background: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 9990;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .thumbnail-item {
        width: 90px;
        height: 65px;
    }
    
    .prev,
    .next,
    .close {
        width: 2.2rem;
        height: 2.2rem;
    }
    
    .prev i,
    .next i,
    .close i {
        font-size: 1.2rem;
    }
    
    .numbertext {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .slides {
        width: 94%;
    }
    
    .pdf-thumbnail i {
        font-size: 24px;
    }
    
    .pdf-filename {
        font-size: 8px;
    }
    
    .pdf-container {
        height: 80vh;
        max-width: 95vw;
    }
}