/* Фоторепортаж: обложка и автоматическая композиция стандартных галерей. */
.photo-story{max-width:1240px;padding-top:2rem;padding-bottom:5rem}
.photo-story__hero{position:relative;overflow:hidden;border-radius:12px;background:#1f5138;color:#fff;min-height:280px;display:flex;align-items:flex-end;margin-bottom:3rem}
.photo-story__hero--image{min-height:clamp(360px,58vw,670px)}
.photo-story__cover{position:absolute;inset:0}
.photo-story__cover:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(8,29,20,.91) 0%,rgba(8,29,20,.48) 37%,rgba(8,29,20,.03) 80%)}
.photo-story__cover img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.photo-story__heading{position:relative;z-index:1;max-width:950px;padding:clamp(24px,5vw,64px)}
.photo-story__eyebrow{font-family:inherit;font-size:.85rem;letter-spacing:.13em;text-transform:uppercase;font-weight:600;color:#f0d496;margin:0 0 1rem}
.photo-story__eyebrow a{color:inherit;text-decoration:none}.photo-story__eyebrow a:hover{text-decoration:underline}
.photo-story__title{font-family:"Cormorant Garamond",Georgia,serif;color:#fff;font-size:clamp(2.6rem,6.3vw,5.7rem);line-height:.98;font-weight:600;margin:0;max-width:850px;text-wrap:balance}
.photo-story__credit{font-size:.95rem;color:#f5eddb;margin:1.4rem 0 0}
.photo-story__body{max-width:100%}.photo-story__body>p,.photo-story__body>h2,.photo-story__body>h3,.photo-story__body>h4,.photo-story__body>ul,.photo-story__body>ol,.photo-story__body>blockquote{max-width:760px;margin-left:auto;margin-right:auto}
.photo-story__body>p:first-child{font-size:clamp(1.15rem,2vw,1.35rem);line-height:1.65;color:#344a3c}
.photo-story__body figure img{height:auto;max-width:100%;border-radius:8px}.photo-story__body .wp-block-image img,.photo-story__body .wp-block-gallery img{cursor:zoom-in}
.photo-story__body figcaption{font-size:.9rem;line-height:1.5;color:#59685f;text-align:left;margin:.55rem 0 0}
/* На широком экране каждый шестой кадр становится акцентным; снимки не обрезаются. */
.photo-story__body .wp-block-gallery.has-nested-images{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,2.4vw,28px);margin:2.5rem 0;align-items:start}
.photo-story__body .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image){width:100%!important;max-width:none!important;margin:0!important;display:block!important;grid-column:span 1}
.photo-story__body .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image):nth-child(6n+1){grid-column:1/-1}
.photo-story__body .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image):last-child:nth-child(even){grid-column:1/-1}
.photo-story__body .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) img{display:block;width:100%!important;height:auto!important;max-width:100%;object-fit:contain!important}
.photo-story__body .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) a{display:block}
.photo-story__body .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) figcaption{position:static!important;width:auto!important;max-height:none!important;background:none!important;color:#59685f!important;padding:0!important;font-size:.9rem;text-align:left}
.card.vz-photo-story .card__image{position:relative}.card.vz-photo-story .card__image:after{content:'Фоторепортаж';position:absolute;left:12px;bottom:12px;background:#1f5138;color:white;border-radius:5px;padding:5px 9px;font-size:.8rem;font-weight:600}
.vzps-dialog{padding:0;border:0;background:#111;color:#fff;max-width:none;max-height:none;width:100%;height:100%}.vzps-dialog::backdrop{background:rgba(0,0,0,.94)}.vzps-dialog__body{height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:50px 70px;box-sizing:border-box}.vzps-dialog img{max-height:calc(100vh - 130px);max-width:100%;width:auto;height:auto;object-fit:contain}.vzps-dialog figcaption{margin-top:8px;text-align:center}.vzps-dialog button{position:absolute;background:rgba(255,255,255,.18);border:0;border-radius:6px;color:white;font-size:28px;cursor:pointer;width:46px;height:46px}.vzps-dialog button:focus-visible{outline:3px solid white}.vzps-dialog__close{right:15px;top:15px}.vzps-dialog__prev{left:15px;top:50%}.vzps-dialog__next{right:15px;top:50%}
@media(max-width:600px){.photo-story{padding-top:1rem}.photo-story__hero--image{min-height:380px}.photo-story__heading{padding:25px}.photo-story__body .wp-block-gallery.has-nested-images{grid-template-columns:1fr;gap:20px}.photo-story__body .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image){grid-column:1!important}.vzps-dialog__body{padding:60px 45px}.vzps-dialog__prev{left:2px}.vzps-dialog__next{right:2px}}
.photo-story__body .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image):nth-child(6n+1) img,.photo-story__body .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image):last-child:nth-child(even) img{width:auto!important;max-width:100%;max-height:min(85vh,850px);margin:0 auto}
.photo-story__body .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image):nth-child(6n+1) figcaption,.photo-story__body .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image):last-child:nth-child(even) figcaption{text-align:center}
