/* Iskustva pacijenata + Galerija - Poliklinika Knezovic mini-site */
/* Paket: knezovic-iskustva-galerija-20261021 */

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}
.story-card {
    display: block;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
    text-decoration: none;
    color: inherit;
    transition: all .3s;
}
.story-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.story-card-media { aspect-ratio: 16/9; overflow: hidden; background: #e9f1fa; }
.story-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-card-body { padding: 22px 24px 26px; }
.story-card-body h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 8px; line-height: 1.3; }
.story-card-body p { font-size: 14px; color: var(--gray-500); line-height: 1.6; margin-bottom: 14px; }
.story-card-link { font-size: 13px; font-weight: 700; color: var(--primary); }

.quote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(0, 1fr));
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 8px;
}
.quote-card {
    background: #fff;
    border-radius: 18px;
    padding: 26px 24px;
    border: 1px solid rgba(0,0,0,0.04);
}
.quote-stars { display: flex; gap: 2px; margin-bottom: 12px; }
.quote-text { font-size: 14.5px; color: var(--gray-700); line-height: 1.7; margin-bottom: 14px; min-height: 48px; }
.quote-name { font-size: 14px; font-weight: 700; color: var(--dark); }
.quote-fb { display: inline-block; margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--primary); text-decoration: none; }
.quote-fb:hover { text-decoration: underline; }

.story-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 48px;
    align-items: start;
}
.story-detail-media { border-radius: 20px; overflow: hidden; position: sticky; top: 100px; }
.story-detail-media img { width: 100%; display: block; }
.story-detail-body p { font-size: 16px; line-height: 1.85; color: var(--gray-700); margin-bottom: 18px; }

.cta-section-wrap { background: var(--gray-100); padding: 64px 24px; }
.btn-cta-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg,#3b82f6,#14b8a6);
    color: #fff; font-weight: 700; font-size: 15px;
    padding: 14px 28px; border-radius: 50px; text-decoration: none;
    margin-top: 12px;
}
.btn-cta-outline {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; border: 1.5px solid var(--gray-300);
    color: var(--dark); font-weight: 700; font-size: 15px;
    padding: 13px 26px; border-radius: 50px; text-decoration: none;
    margin-top: 12px;
}

/* Galerija grid + lightbox */
.gal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 8px;
}
.gal-item {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--gray-100);
    cursor: zoom-in;
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gal-item:hover img { transform: scale(1.04); }

.gal-lightbox {
    display: none;
    position: fixed; inset: 0;
    background: rgba(10,15,25,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.gal-lightbox.open { display: flex; }
.gal-lightbox img { max-width: 90vw; max-height: 86vh; border-radius: 12px; display: block; }
.gal-lightbox-close, .gal-lightbox-prev, .gal-lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 28px;
    width: 48px; height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.gal-lightbox-close:hover, .gal-lightbox-prev:hover, .gal-lightbox-next:hover { background: rgba(255,255,255,0.2); }
.gal-lightbox-close { top: 24px; right: 24px; }
.gal-lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.gal-lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

@media (max-width: 900px) {
    .story-grid { grid-template-columns: repeat(2, 1fr); }
    .quote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .story-detail { grid-template-columns: minmax(0, 1fr); }
    .story-detail-media { position: static; }
    .gal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .story-grid { grid-template-columns: minmax(0, 1fr); }
    .quote-grid { grid-template-columns: minmax(0, 1fr); }
    .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gal-lightbox-prev, .gal-lightbox-next { width: 40px; height: 40px; font-size: 22px; }
}

/* Galerija prije/poslije - kartice (paket knezovic-galerija-pp-20261021) */
.gal-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}
.gal-chip {
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gray-700);
    background: #fff;
    border: 1.5px solid var(--gray-300);
    border-radius: 50px;
    padding: 9px 18px;
    cursor: pointer;
    transition: all .2s;
}
.gal-chip:hover { border-color: var(--primary); color: var(--primary); }
.gal-chip.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.gal-grid-pp {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.gal-card {
    background: #fff;
    border-radius: 20px;
    padding: 16px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 10px rgba(15,29,51,0.04);
}
.gal-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.35;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}
.gal-card-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.gal-photo {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray-100);
    border: none;
    padding: 0;
    cursor: zoom-in;
}
.gal-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gal-photo:hover img { transform: scale(1.05); }
.gal-badge {
    position: absolute;
    left: 8px;
    bottom: 8px;
    background: rgba(15,29,51,0.72);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
}

.gal-lightbox-body { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 94vw; }
.gal-lightbox-pair { display: flex; gap: 16px; }
.gal-lightbox-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gal-lightbox-tag {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: rgba(255,255,255,0.12);
    border-radius: 50px;
    padding: 4px 14px;
}
.gal-lightbox-col img { max-width: 42vw; max-height: 62vh; border-radius: 12px; display: block; }
.gal-lightbox-title { color: #fff; font-size: 15px; text-align: center; max-width: 640px; opacity: 0.9; }

@media (max-width: 900px) {
    .gal-grid-pp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .gal-grid-pp { grid-template-columns: minmax(0, 1fr); }
    .gal-lightbox-pair { flex-direction: column; }
    .gal-lightbox-col img { max-width: 86vw; max-height: 36vh; }
    .gal-lightbox-body { max-width: 92vw; }
}

/* Izvorni strucni opis zahvata (latinski zapis doktorice) sitno ispod naslova (21.10.2026.) */
.gal-card-title + .gal-card-opis { margin-top: -8px; }
.gal-card-opis { font-size: 12px; line-height: 1.45; color: var(--gray-500, #6b7280); font-style: italic; margin: 0 0 12px; }
.gal-lightbox-opis { color: rgba(255,255,255,0.7); font-size: 12.5px; font-style: italic; text-align: center; max-width: 640px; margin-top: 4px; }

/* Veliki prikaz uredniji (Petra 21.10.2026., mobitel): oznaka u kutu fotografije, tamnija pozadina,
   strelice dolje uz rub ekrana na mobitelu, nista ne prekriva fotografije. */
.gal-lightbox { background: rgba(8,12,20,0.97); }
.gal-lightbox-col { position: relative; }
.gal-lightbox-tag { position: absolute; top: 10px; left: 10px; z-index: 1; background: rgba(15,29,51,0.78); padding: 5px 12px; font-size: 11px; }
.gal-lightbox-title { font-weight: 600; margin-top: 4px; }
@media (max-width: 640px) {
    .gal-lightbox { padding: 68px 14px 96px; align-items: flex-start; overflow-y: auto; }
    .gal-lightbox-body { max-width: 100%; width: 100%; gap: 12px; }
    .gal-lightbox-pair { width: 100%; gap: 12px; }
    .gal-lightbox-col { width: 100%; }
    .gal-lightbox-col img { width: 100%; max-width: 100%; max-height: none; }
    .gal-lightbox-close { top: 12px; right: 12px; width: 44px; height: 44px; }
    .gal-lightbox-prev, .gal-lightbox-next { position: fixed; top: auto; bottom: 20px; transform: none; width: 52px; height: 52px; background: rgba(255,255,255,0.14); }
    .gal-lightbox-prev { left: 20px; }
    .gal-lightbox-next { right: 20px; }
    .gal-lightbox-title { font-size: 15px; line-height: 1.4; }
}
