/* 
 * Destination Gallery Widget CSS
 * Layout: 1 Main Image (Left) + 4 Thumbnails (Right)
 */

/* Container - Establishes the Grid */
.destination-gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Left takes 2/3, Right takes 1/3 */
    grid-template-rows: auto;
    gap: 10px;
    height: 450px; /* Fixed height ensures consistent layout */
    width: 100%;
    border-radius: 15px; /* Rounded corners as per design */
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
    background: #fff;
}

/* Main Image Left Wrapper */
.dest-gallery-main {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.dest-gallery-main a {
    display: block;
    height: 100%;
    width: 100%;
}

/* Thumbnails Right Wrapper (2x2 Grid) */
.dest-gallery-thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    height: 100%;
}

/* Image Styling */
.dest-gallery-main img, 
.dest-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images cover area without stretching */
    display: block;
    transition: transform 0.4s ease;
}

/* Hover Zoom Effect */
.dest-gallery-main:hover img, 
.dest-thumb-item:hover img {
    transform: scale(1.03);
}

.dest-thumb-item {
    position: relative;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.dest-thumb-item a {
    display: block;
    height: 100%;
    width: 100%;
}

/* --- VIEW ALL BUTTON (Bottom Right Corner of 4th Image) --- */
.view-all-overlay {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 10;
    pointer-events: none; /* Allows clicks to pass through to the link (Fancybox) */
}

.view-all-btn {
    background-color: #ffffff;
    color: #333333;
    padding: 8px 18px;
    border-radius: 30px; /* Pill Shape */
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    pointer-events: auto; /* Re-enables clicking specifically on the button */
    text-transform: capitalize;
}

.view-all-btn i { 
    font-size: 14px; 
    color: #333;
}

.view-all-btn:hover { 
    background-color: #f2f2f2; 
    transform: translateY(-2px);
    transition: all 0.2s ease;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .destination-gallery-grid {
        height: auto; /* Allow height to grow */
        grid-template-columns: 1fr; /* Stack vertically */
    }
    
    .dest-gallery-main {
        height: 250px; /* Fixed height for main image on mobile */
    }

    .dest-gallery-thumbs {
        grid-template-columns: repeat(4, 1fr); /* 4 items in a row */
        height: 80px; /* Small strip */
    }
    
    /* Hide the button on very small screens if it covers too much, or adjust size */
    .view-all-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
}