/**
 * GesyfarInstagram — CSS Frontend v1.1
 * Botón "Síguenos" compacto. SVG aislado del reset del tema.
 */

.gig-block {
    width: 100%; margin: 40px 0;
    position: relative; clear: both;
}

/* ── Cabecera ─────────────────────────────────────────────── */
.gig-header {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 8px;
    padding: 10px 0; border-bottom: 1px solid #e5e5e5; margin-bottom: 14px;
}
.gig-header-left { display: flex; flex-direction: column; gap: 1px; }
.gig-title { font-size: 15px; font-weight: 700; color: #000; text-transform: uppercase; letter-spacing: .4px; display: block; }
.gig-username { font-size: 13px; color: #999; font-style: italic; text-decoration: none; display: block; transition: color .2s; }
.gig-username:hover { color: #7a8d78; text-decoration: none; }

/* ── Menú de etiquetas ───────────────────────────────────── */
.gig-tags {
    display: flex; align-items: center; flex-wrap: wrap; gap: 0;
    flex: 1; justify-content: center; padding: 0 10px;
}
.gig-tag {
    background: none; border: none;
    padding: 4px 12px; font-size: 14px; color: #999;
    cursor: pointer; transition: color .15s; white-space: nowrap; line-height: 1.4;
}
.gig-tag:hover  { color: #000; }
.gig-tag.gig-tag-active { color: #000; font-weight: 700; }

/* ── Botón "Síguenos" — tamaño compacto, SVG aislado ─────── */
.gig-follow-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 16px;
    background: #efefef; color: #000 !important;
    border: none; border-radius: 5px;
    font-weight: 600; font-size: 13px;
    text-decoration: none !important; white-space: nowrap;
    transition: background .2s; flex-shrink: 0; cursor: pointer; line-height: 1.3;
}
.gig-follow-btn:hover { background: #7a8d78; color: #fff !important; text-decoration: none !important; }

/* Contenedor SVG: dimensiones fijas y overflow explícito */
.gig-follow-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 15px !important; height: 15px !important;
    min-width: 15px; min-height: 15px;
    overflow: visible !important; flex-shrink: 0;
    line-height: 1;
}
/* Bloquear cualquier regla del tema sobre SVG dentro del botón */
.gig-follow-btn .gig-follow-icon svg,
.gig-follow-btn svg {
    display: block !important;
    width:  15px !important; min-width:  15px !important; max-width:  15px !important;
    height: 15px !important; min-height: 15px !important; max-height: 15px !important;
    overflow: visible !important;
    padding: 0 !important; margin: 0 !important;
    border: none !important; background: none !important;
    vertical-align: middle; flex-shrink: 0;
}

/* ── Wrapper de fotos ────────────────────────────────────── */
.gig-wrapper { position: relative; }

/* ── Ítem ────────────────────────────────────────────────── */
.gig-item { position: relative; overflow: hidden; }
.gig-item.gig-hidden { display: none; }

.gig-media-link {
    display: block; text-decoration: none;
    position: relative; overflow: hidden; background: #f0f0f0;
}
.gig-media-link:hover { text-decoration: none; }

/* Altura fija definida inline */
.gig-img-wrap { position: relative; width: 100%; overflow: hidden; background: #ebebeb; }

.gig-img-cover {
    position: absolute; inset: 0;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    transition: transform .4s ease;
}
.gig-img-real { display: none; }
.gig-media-link:hover .gig-img-cover { transform: scale(1.05); }

/* ── Overlay ─────────────────────────────────────────────── */
.gig-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.44);
    opacity: 0; transition: opacity .3s ease;
    display: flex; flex-direction: column;
    align-items: center; justify-content: flex-end;
    padding: 10px; gap: 5px;
}
.gig-media-link:hover .gig-overlay { opacity: 1; }
.gig-overlay-top { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; }
.gig-type-icon { color: #fff; font-size: 16px; line-height: 1; }
.gig-caption {
    color: #fff; font-size: 11px; line-height: 1.4; text-align: center; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Icono IG pequeño en overlay */
.gig-ig-small-icon { position: absolute; bottom: 7px; right: 7px; display: flex; }
.gig-ig-small-icon svg {
    display: block !important;
    width: 16px !important; height: 16px !important;
    overflow: visible !important;
}

/* ── CARRUSEL ────────────────────────────────────────────── */
.gig-is-carousel .gig-wrapper { overflow: hidden; }
.gig-carousel-track {
    display: flex; transition: transform .45s cubic-bezier(.25,.46,.45,.94);
    will-change: transform; margin: 0; padding: 0; list-style: none;
}
.gig-carousel-track .gig-item { flex-shrink: 0; padding: 0 5px; box-sizing: border-box; }
.gig-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10; background: #fff; border: 1px solid #e5e5e5; border-radius: 50%;
    width: 34px; height: 34px; font-size: 24px; line-height: 1; cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, color .2s, border-color .2s;
    color: #000; padding: 0;
}
.gig-nav:hover { background: #2db2ac; color: #fff; border-color: #2db2ac; }
.gig-nav:disabled { opacity: .35; cursor: default; }
.gig-prev { left: 3px; } .gig-next { right: 3px; }

/* ── GRID ────────────────────────────────────────────────── */
.gig-grid-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 767px) {
    .gig-tags { order: 3; width: 100%; justify-content: flex-start; }
    .gig-follow-btn { font-size: 12px; padding: 8px 12px; }
}
@media (max-width: 543px) {
    .gig-follow-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .gig-img-cover, .gig-overlay, .gig-carousel-track, .gig-nav { transition: none; }
}
