﻿.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 576px) { /* Bootstrap's "sm" breakpoint */
    .photo-grid {
        grid-template-columns: 1fr;
    }
}

.placeholder-tile {
    overflow: hidden;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px; /* default */
}

.vendor .placeholder-tile {
    height: 250px;
}

.placeholder-tile img {
    height: 100%;
    object-fit: cover; /* fills the box without stretching */
    display: block;
}

.placeholder-tile:hover {
    background-color: #e9ecef; /* slightly darker on hover */
}

.replace-media {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 5;
    padding: .15rem .4rem;
    line-height: 1;
    font-size: .85rem;
}

.empty-placeholder {
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    border-radius: .5rem;
    color: #6c757d;
}

.empty-placeholder:hover {
    background-color: #e9ecef; /* slightly darker on hover */
}

.media-tile {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.media-tile:hover {
    transform: scale(1.03);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

.media-option {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.media-option:hover {
    transform: scale(1.03);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

.media-tile img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.multiselect__tag {
    background-color: var(--av-blue) !important;
}

.multiselect__tag-icon {
    background-color: #e74c3c !important; /* red background */
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    /* force the mask / x to always show white */
    -webkit-mask-repeat: no-repeat !important;
    -webkit-mask-position: center !important;
    -webkit-mask-size: 60% !important;
    mask-repeat: no-repeat !important;
    mask-position: center !important;
    mask-size: 60% !important;
    opacity: 1 !important; /* always fully visible */
}

.multiselect__tag-icon:hover {
    background-color: #c0392b !important; /* slightly darker red on hover */
    opacity: 1 !important; /* keep the x visible */
}
