.style-search {
    width: 100%;
}

input.style-search {
    margin-bottom: 15px !important;
}

.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.style-card {
    display: block; 
    text-decoration: none; 
    color: inherit;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    text-align: center;
    background: #f9f9f9;
}

.style-card:hover {
    background: #efefef;
}

.style-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: auto;
}

#styleGrid .style-card {
    opacity: 0;
    filter: blur(6px);
    transform: scale(0.96);
    transition: opacity 1s ease-out, filter 1s ease-out, transform 1s ease-out;
}

#styleGrid .style-card.loaded {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}

.mfp-content img {
    max-width: 80vw !important; 
    max-height: 80vh !important; 
    width: auto !important;       
    height: auto !important;
}

.mfp-counter {
    top: 20px !important;
}

img.mfp-img {
    padding: 40px 0 0 !important;
}

figcaption {
    border-bottom: 0 !important;
}

.copy-button {
    font-size: 16px;
    font-weight: 600;
    color:#fff;
    background:#c8102e;
    border-radius: 9999px;
    padding: 14px 25px;
    margin: 25px auto;
    transition: background 0.25s ease-in-out,
                transform 0.25s ease-in-out;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
}

.copy-button:hover {
    color: #fff !important;
    background: #090909 !important;
    transform: scale(0.95);
}