/**
 * Styles for the Elementor Hotel Gallery Widget
 * V2 with increased specificity to override theme styles.
 */

.elementor-widget-etc-hotel-gallery .etc-hotel-gallery-widget {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.elementor-widget-etc-hotel-gallery .etc-hotel-gallery-grid {
    display: flex;
    gap: 8px;
    height: 450px;
}

.elementor-widget-etc-hotel-gallery .main-image {
    flex: 2; 
}

.elementor-widget-etc-hotel-gallery .right-column-gallery {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
}

.elementor-widget-etc-hotel-gallery .gallery-item {
    overflow: hidden;
    position: relative;
    border-radius: 4px;
}

.elementor-widget-etc-hotel-gallery .gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.elementor-widget-etc-hotel-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.elementor-widget-etc-hotel-gallery .gallery-item a:hover img {
    transform: scale(1.05);
}

.elementor-widget-etc-hotel-gallery .etc-view-all-photos-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #1A2B48;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.elementor-widget-etc-hotel-gallery .etc-view-all-photos-btn:hover {
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.elementor-widget-etc-hotel-gallery .etc-view-all-photos-btn i {
    margin-right: 8px;
}

/* Lightbox styles do not need increased specificity as they are fixed position */
.etc-gallery-lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); z-index: 99999; display: none; justify-content: center; align-items: center; padding: 20px; box-sizing: border-box;
}
.etc-gallery-lightbox.open { display: flex; }
.lightbox-close, .lightbox-prev, .lightbox-next, .lightbox-counter { position: absolute; color: white; background: none; border: none; cursor: pointer; z-index: 100001; }
.lightbox-close { top: 20px; right: 30px; font-size: 40px; font-weight: bold; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); font-size: 50px; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter { top: 25px; left: 30px; font-size: 16px; }
.lightbox-content { max-width: 90%; max-height: 90%; }
.lightbox-content img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; margin: 0 auto; }