/*
Theme Name: Your Theme Name
Author: Your Name
Description: A custom theme for my WordPress site.
Version: 1.0
*/

/* ==========================================================================
   Custom Gallery Styles (Matched to Photo)
   ========================================================================== */

.custom-gallery {
    max-width: 960px;
    margin: 32px auto; /* Add some vertical spacing */
    box-sizing: border-box;
}

.thumbnail-nav {
    position: relative;
    margin-bottom: 8px; /* Reduced space between thumbnails and main image */
}

.gallery-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(240, 240, 240, 0.8);
    border-radius: 50%;
    padding: 4px;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.gallery-scroll-btn:hover {
    background-color: rgba(220, 220, 220, 1);
}

.gallery-scroll-btn svg {
    width: 20px;
    height: 20px;
    stroke: #333;
}


.gallery-scroll-left {
    left: -12px;
}

.gallery-scroll-right {
    right: -12px;
}

.thumbnail-container {
    display: flex;
    align-items: center;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 0;
    /* Hide scrollbar */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.thumbnail-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}


.gallery-thumbnail {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 3px solid #666;
    transition: all 0.2s ease-in-out;
    margin-right: 8px;
    flex-shrink: 0;
}

.gallery-thumbnail:last-child {
    margin-right: 0;
}

.gallery-thumbnail.active {
    border-color: #000000;
}

.main-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 66.66%; /* 3:2 Aspect Ratio */
}

.main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed to contain to show full image */
    border-radius: 4px;
    background-color: #f9f9f9;
    box-sizing: border-box;
}

.caption-wrapper {
    margin-top: 12px;
}

.caption-display {
    text-align: left;
    color: #333;
    font-size: 0.9rem;
    font-family: sans-serif;
    font-style: italic; /* Added this line */
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .custom-gallery {
        width: 100%;
        padding: 0 16px; /* Add some horizontal padding on smaller screens */
    }
     .gallery-scroll-left {
        left: 0;
    }
    .gallery-scroll-right {
        right: 0;
    }
}


