/* Style for active view buttons */
.view-toggle-button.active {
    border: 2px solid #000000;
}

/* Style for non-active view buttons */
.view-toggle-button {
    padding: 3px;
    border: 1.5px solid #c6c6c6;
    background-color: white;
    cursor: pointer;
    border-radius: 5px;
}

.list-gal-buttons {
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 5px;
    margin-top: 3px;
}

.gal-details {
    width: 100%;
}

.gallery-view {
    max-width: 393px;
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

.gallery-view .media-slider, .gallery-view .slider-media {
    width: 393px; 
    height: 300px;
}

.gal-heading {
    font-size: 19px;
    margin-top: 2px;
    margin-bottom: 2px;
    margin-left: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 50);
}

.gallery-company-logo {
    min-width: 20px;  /* Adjust width/height to match your avatar */
    min-height: 20px;
    max-width: 20px;  /* Adjust width/height to match your avatar */
    max-height: 20px;
    border: 1.5px solid #cbcbcb;
    border-radius: 50%;
    margin-top: 4px;
    margin-left: 5px;
    z-index: 5;
    background-color: #fff;
}

.gallery-bottom-bar {
    position: absolute;
    bottom: 125px;
    width: 392px; /* Spans the full width of the listing */
    height: 30px; /* Adjust height as needed */
    background-color: #fff;
    z-index: 3; /* Below the logo */
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    border: 0.3px solid #ddd;
}

.gallery-bottom-text {
    font-size: 17px; /* Set the font size */
    color: #333; /* Text color */
    overflow: hidden; /* Hide overflowing content */
    white-space: nowrap; /* Prevent text from wrapping to the next line */
    text-overflow: ellipsis; /* Add the ellipsis for truncated text */
    max-width: 170px;
    margin-left: 3px;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    padding-top: 8px;
}

.gal-created-at {
    position: absolute;
    font-size: 13px; 
    color:#777777; 
    display: flex; 
    gap: 4px; 
    bottom: 3px;
    left: 7px;
}

.gal-details .small-distance-marker {
    width: 12px; 
    height: 12px;
    margin: 1px -4px 0 -2px;
}

.short-version {
    font-size: 11px;
}

.right-bottom {
    bottom: 3px;
    right: 3px;
}

.organic-bg {
    background-color: #e8f5e9;
    border: 2px solid rgb(157, 203, 159); 
}

.featured-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: #ffeb3b;
    color: #000;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 4px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.map-error {
    position: absolute;
    inset: 0;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.map-error-box {
    text-align: center;
    font-size: 14px;
    color: #444;
}

.map-error button {
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1.5px solid #c1c1c1;
    background: white;
    cursor: pointer;
}

.gal-created-dist-wrapper {
    display: flex;
    gap: 4px;
}

@media (max-width: 1350px) {
    .gallery-view {
        max-width: 475px;
        min-height: 450px;
    }
    .gallery-view .media-slider, .gallery-view .slider-media {
        width: 475px; 
        height: 300px;
    }
}

@media (max-width: 1150px) {
    .gallery-view {
        max-width: 375px;
        min-height: 450px;
    }
    .gallery-view .media-slider, .gallery-view .slider-media {
        max-width: 375px;
        height: 300px;
    }
}

@media (max-width: 850px) {
    .gallery-view {
        max-width: 316px;
        min-height: 450px;
    }
    .gallery-view .media-slider, .gallery-view .slider-media {
        max-width: 316px;
        height: 280px;
    }
}

@media (max-width: 710px) {
    .gallery-view {
        max-width: 285px;
        min-height: 435px;
    }
    .gallery-view .media-slider, .gallery-view .slider-media {
        max-width: 285px;
        height: 265px;
    }
}

@media (max-width: 640px) {
    .gallery-view {
        max-width: 247px; 
        min-height: 400px;
    }
    .gallery-view .media-slider, .gallery-view .slider-media {
        width: 247px; 
        height: 227px;
    }
    .gal-created-at {
        font-size: 11px;
        flex-direction: column;
        gap: 2px;
    }
    .gal-created-separator {
        display: none;
    }
    .gal-created-dist-wrapper {
        margin-top: -2px;
    }
    .gal-details .small-distance-marker {
        width: 10px; 
        height: 10px;
        margin-top: 0.5px;
    }
}

@media (max-width: 480px) {
    .gallery-view .media-slider, .gallery-view .slider-media {
        width: 145px; 
        min-height: 125px;
    }
    .gallery-view {
        max-width: 145px; 
        min-height: 270px;
    }
    .gallery-company-logo {
        display: none;
    }
    .gal-heading {
        font-size: 14px;
    }
    .right-bottom {
        bottom: 1px;
        right: 2px;
    }
    .short-version {
        font-size: 8px;
        padding: 3px;
    }
    .featured-badge {
        font-size: 0.8rem;
    }
}