/* Little Manitou Art Gallery Custom Styles */

/* @import url('https://fonts.googleapis.com/css2?family=Arvo:ital,wght@0,400;0,700;1,400;1,700&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap'); */

@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins/Poppins-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins/Poppins-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins/Poppins-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins/Poppins-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins/Poppins-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins/Poppins-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --lmag-yellow: #ffff00; /* Pure Yellow from WP Archive */
  --lmag-black: #000000;
  --lmag-grey: #333333;
  --lmag-bg: #f7f9ff;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--lmag-grey);
    background-color: var(--lmag-bg);
}

.lmag-container {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

article>* {
    max-width: 80ch !important;
    margin: 20px auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--lmag-black);
    font-weight: 600;
    margin: 80px auto 20px auto;
    text-align: center;
}

/* Specific font for some accents if needed, based on archive */
.serif-font {
    font-family: 'Arvo', serif;
}

li {
    text-align: left;
}
a {
  color: var(--lmag-black);
  text-decoration: none;
  border-bottom: 2px solid var(--lmag-yellow);
  transition: background-color 0.3s ease;
}

a:hover {
  background-color: var(--lmag-yellow);
  color: var(--lmag-black);
}

/* Navbar adjustments */
nav[role="navigation"] {
    background-color: var(--lmag-yellow);
}

nav[role="navigation"] a {
    color: var(--lmag-black) !important;
    border-bottom: none !important;
    font-weight: 500;
}

nav[role="navigation"] a:hover {
    background-color: rgba(0,0,0,0.1) !important;
    color: var(--lmag-black) !important;
}

.ananke-socials a {
    border-bottom: none;
}

/* Hero text adjustments */
.f1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Button style */
.btn {
    background-color: var(--lmag-yellow);
    color: black;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.btn:hover {
    background-color: black;
    color: var(--lmag-yellow);
}

/* Widget Containers */
.widgets-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    margin-top: 20px;
}

.widget-container {
    flex: 1 1 300px; /* Grow, shrink, base width */
    margin: 0;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    box-sizing: border-box;
    min-width: 300px;
}

.map-responsive {
    overflow:hidden;
    padding-bottom:56.25%;
    position:relative;
    height:0;
}

.map-responsive iframe {
    left:0;
    top:0;
    height:100%;
    width:100%;
    position:absolute;
}

/* Gallery Flex Grid */
.gallery-section {
    margin-bottom: 40px;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.gallery-item {
    height: 250px; /* fixed height for all images in the row */
    flex-grow: 1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    z-index: 5;
}

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

/* To maintain aspect ratio better while filling the row, 
   we can use the images' natural widths if we don't resize them to squares. */


/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    border: 2px solid white;
    object-fit: contain;
    cursor: zoom-out;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--lmag-yellow);
}

.section-title {
    border-bottom: 2px solid var(--lmag-yellow);
    padding-bottom: 10px;
    margin-top: 40px;
    display: inline-block;
}

/* Carousel */
.carousel-container {
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
    cursor: grab;
    height: 50vh;
}

.carousel-track:active {
    cursor: grabbing;
}

.carousel-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    position: relative;
    /* Apply vertical padding to match standard header heights */
    padding: 5rem 0;
}

@media (min-width: 60em) {
    .carousel-slide {
        padding: 12rem 0;
    }
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    display: block;
    z-index: -1;
}

/* Carousel Navigation Buttons - Hidden by default (mobile/touch) */
.carousel-prev,
.carousel-next,
.review-nav-btn {
    display: none !important;
}

/* Show buttons only on desktop with hover support */
@media (min-width: 1024px) and (hover: hover) {
    .carousel-prev,
    .carousel-next,
    .review-nav-btn {
        display: flex !important;
    }
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(128, 128, 128, 0.5); /* translucent grey dots */
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: rgba(51, 51, 51, 1); /* darker for current image */
}

/* FAQ / Accordion Styles */
.faq-container {
    margin: 20px auto;
}

.faq-item {
    background-color: white;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.faq-item summary {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* Hide default arrow in some browsers */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none; /* Hide default arrow in Chrome/Safari */
}

.faq-item summary:hover {
    background-color: var(--lmag-yellow);
}

.faq-item summary::after {
    content: '\25BC'; /* Down arrow */
    font-size: 12px;
    transition: transform 0.3s ease;
    color: var(--lmag-black);
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 20px 20px 20px;
    border-top: 1px solid #eee;
    line-height: 1.6;
}

.faq-anchor {
    scroll-margin-top: 100px; /* Offset for sticky nav if any */
}

/* Review Carousel Styles */
.review-carousel-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 10px;
}

.review-carousel-container {
    position: relative;
    padding: 0 40px;
    max-width: 800px;
    margin: 0 auto;
}

.review-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding-bottom: 20px;
    scrollbar-width: none;
    cursor: grab;
}

.review-carousel.dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.review-carousel::-webkit-scrollbar {
    display: none;
}

.review-group {
    flex: 0 0 100%;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-sizing: border-box;
}

/* Individual Review Card */
.review-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.review-stars {
    color: #FFD700;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.review-text {
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 10px;
    font-size: 0.95em;
}

.review-author {
    font-weight: bold;
    color: var(--lmag-black);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9em;
}

.review-platform-text {
    color: #777;
    margin-right: 5px;
    font-weight: normal;
}

.review-link {
    text-decoration: none;
    color: var(--lmag-black);
    border: 1px solid #eee;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.2s;
}

.review-link:hover {
    background: var(--lmag-yellow);
}

.review-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 3;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
}

.review-nav-btn:hover {
    background: var(--lmag-yellow);
    border-color: var(--lmag-yellow);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.review-prev { 
    left: 0px; 
}
.review-next { 
    right: 0px; 
}

.review-carousel-container {
    position: relative;
    padding: 0 10px;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .review-carousel-container {
        padding: 0 40px;
    }
}

/* Dynamic review stack count to prevent excessive vertical growth on thin displays */
@media (max-width: 600px) {
    .review-group .review-card:nth-child(n+2) {
        display: none;
    }
}

@media (min-width: 601px) and (max-width: 1100px) {
    .review-group .review-card:nth-child(n+3) {
        display: none;
    }
}

