/* Epicise Gallery Buttons — frontend styles */

.epc-gallery-wrapper {
    padding: 16px;
}

/* === Grid view === */
.epc-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.epc-gallery-tile {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.epc-gallery-tile:hover {
    transform: translateY(-2px);
    border-color: #b88a3e;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.epc-gallery-img-wrap {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #1a1a1a;
}
.epc-gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.epc-gallery-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0,0,0,0.75);
    color: #ffd479;
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 3px;
    border: 1px solid rgba(184,138,62,0.55);
}

.epc-gallery-caption {
    padding: 8px 10px;
    font-size: 13px;
    color: #ddd;
    text-align: center;
    background: rgba(0,0,0,0.25);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.epc-gallery-empty {
    padding: 40px;
    text-align: center;
    color: #888;
    font-style: italic;
}

/* === Detail view === */
.epc-gallery-back {
    background: transparent;
    border: 1px solid #b88a3e;
    color: #b88a3e;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    margin-bottom: 14px;
    transition: background .15s, color .15s;
}
.epc-gallery-back:hover {
    background: #b88a3e;
    color: #1a1a1a;
}

.epc-gallery-detail-body {
    min-height: 100px;
}

.epc-gallery-loading,
.epc-gallery-error {
    padding: 30px;
    text-align: center;
    font-style: italic;
}
.epc-gallery-loading { color: #aaa; }
.epc-gallery-error   { color: #c66; }

/* === Coming-soon enlarged-image view === */
.epc-gallery-coming-soon {
    text-align: center;
}
.epc-gallery-cs-imgwrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
}
.epc-gallery-cs-imgwrap img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 6px;
    display: block;
}
.epc-gallery-cs-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    color: #ffd479;
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    pointer-events: none;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.epc-gallery-cs-caption {
    margin-top: 14px;
    color: #ccc;
    font-size: 15px;
}

/* Mobile tweaks */
@media (max-width: 600px) {
    .epc-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    .epc-gallery-cs-overlay { font-size: 22px; }
}
