/* Carousel Styles and Overrides */
.gallery-wrapper { display: none !important; }

.carousel-section {
    max-width: 1200px;
    margin: 2rem auto 3rem auto;
    padding: 0 1rem;
    font-family: 'Lora', serif; /* ensure Lora across gallery area */
}

.carousel-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: transparent;
    border-radius: 16px;
    border: none;
    box-shadow: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px; /* subtle inner margin */
}

.carousel-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 0; /* do not clip image corners */
    overflow: visible; /* allow image corner radius/outline to show */
}

.carousel-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    max-width: calc(100% - 12px);
    max-height: calc(100% - 12px);
    transition: opacity 0.45s ease;
    background: transparent;
    border-radius: 16px; /* pronounced rounded corners */
    box-shadow: 0 0 0 1px rgba(41, 59, 37, 0.12); /* subtle outline to reveal rounding */
}

#carousel-image-next { opacity: 0; }

.carousel-image { pointer-events: none; }

.carousel-meta { margin-top: 0.75rem; text-align: center; font-family: 'Lora', serif; color: #293b25; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
#carousel-caption {
    font-size: 1.05rem;
    margin: 0; /* rely on gap to space from counter */
    letter-spacing: 0.3px;
    min-height: 1.5em; /* prevents layout shift */
    display: block;
    padding: 0.35rem 0.6rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(41, 59, 37, 0.08);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
#carousel-caption:empty {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    padding: 0; /* keep only the min-height */
}
#carousel-counter { font-size: 0.9rem; color: rgba(41,59,37,0.7); }

.carousel-meta {
    margin-top: 0.6rem;
    text-align: center;
    font-family: 'Lora', serif;
    color: rgba(41, 59, 37, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(41, 59, 37, 0.15);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.72, 0.22, 1);
    z-index: 2;
    color: #293b25;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.carousel-btn.prev { left: 0.8rem; }
.carousel-btn.next { right: 0.8rem; }

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.06);
    opacity: 1;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

@media (max-width: 900px) {
    .carousel-viewport { aspect-ratio: 4 / 3; }
    .carousel-btn { width: 42px; height: 42px; }
}

@media (max-width: 600px) {
    .carousel-viewport { aspect-ratio: 1 / 1; }
    #carousel-caption { font-size: 0.95rem; padding: 0.7rem 1rem; }
}

/* (Removed legacy bento and lightbox styles) */