/*
 * Site Fixes CSS for Falvello Law
 */

/* Testimonial Stars - limit size */
.dmPhotoGallery[data-rows-to-show="1"] .photoGalleryThumbs .image-container,
.dmPhotoGallery[data-rows-to-show="1"] .photoGalleryThumbs .image-container a,
.dmPhotoGallery[data-rows-to-show="1"] .photoGalleryThumbs .image-container img {
    display: inline-block !important;
    max-height: 50px !important;
    max-width: 150px !important;
    height: auto !important;
    width: auto !important;
    min-height: unset !important;
}

.dmPhotoGallery[data-rows-to-show="1"] .photoGalleryThumbs .thumbnailInnerWrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.dmPhotoGallery[data-rows-to-show="1"] .photoGalleryThumbs .image-container {
    flex-shrink: 0 !important;
}

/* Blog/Insights section images - fill container */
.dmPhotoGallery[data-desktop-columns="2"] .photoGalleryThumbs .image-container,
.dmPhotoGallery[data-desktop-columns="2"] .photoGalleryThumbs .image-container a,
.dmPhotoGallery[data-desktop-columns="2"] .photoGalleryThumbs .image-container img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    min-height: unset !important;
    object-fit: cover !important;
}

.dmPhotoGallery[data-desktop-columns="2"] .photoGalleryThumbs .image-container a {
    min-height: 200px !important;
    background-size: cover !important;
    background-position: center !important;
}

/* Accordion Styles */
.accordion-item {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.accordion-item .accordion-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    cursor: pointer;
}

.accordion-item .accordion-title:hover {
    opacity: 0.8;
}

.accordion-item .accordion-description {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

/* Override widget CSS that restricts accordion content */
.accordion-item .accordion-description .section,
.widget-832a29 .section,
[class*="widget-"] .accordion-description .section {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}

.accordion-item.active .accordion-description {
    padding-bottom: 15px;
    max-height: 1000px !important;
}

.accordion-item .arrow-wrapper .arrow {
    position: relative;
    width: 16px;
    height: 16px;
}

.accordion-item .arrow-wrapper .horizontal,
.accordion-item .arrow-wrapper .vertical {
    position: absolute;
    background-color: currentColor;
    transition: transform 0.3s ease;
}

.accordion-item .arrow-wrapper .horizontal {
    width: 16px;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.accordion-item .arrow-wrapper .vertical {
    width: 2px;
    height: 16px;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.accordion-item.active .arrow-wrapper .vertical {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

/* Hamburger Menu Styles */
.hamburger-drawer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background: white !important;
    z-index: 99999 !important;
    transform: translateY(-100%) !important;
    transition: transform 0.3s ease-in-out !important;
    overflow-y: auto !important;
    visibility: hidden;
}

.hamburger-drawer.open {
    transform: translateY(0) !important;
    visibility: visible !important;
}

.hamburger-drawer.open[aria-hidden="false"] {
    visibility: visible !important;
}

/* Remove inert attribute styling override */
.hamburger-drawer.open[inert] {
    visibility: visible !important;
    pointer-events: auto !important;
}

.layout-drawer-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.5) !important;
    z-index: 99998 !important;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease !important;
}

.layout-drawer-overlay.open {
    display: block !important;
    opacity: 1 !important;
}

/* Lazy loaded images - ensure they display */
.image-container img[data-src] {
    opacity: 1 !important;
    visibility: visible !important;
}

.image-container.revealed {
    display: block !important;
}

a[data-image-url] {
    display: block !important;
    min-height: 200px;
}

/* Photo Gallery hidden rows */
.photogallery-hidden-row {
    display: none;
}

/* View More expanded state - override max-height restrictions */
.dmPhotoGallery.view-all-expanded .photogallery-hidden-row {
    display: block !important;
}

.dmPhotoGallery .layout-container {
    max-height: none !important;
    overflow: visible !important;
}

/* Carousel navigation */
.carousel-nav button:hover {
    opacity: 0.8;
}

/* View More button styling */
.photoGalleryViewAll {
    cursor: pointer;
    color: var(--color_3, #770028);
    text-decoration: underline;
    padding: 10px 0;
    display: inline-block;
}

.photoGalleryViewAll:hover {
    opacity: 0.8;
}
