/* VCDS Core – visualizzatore foto (lightbox.js) */
.wp-block-gallery a[href] img, .wp-block-image a[href] img { cursor: zoom-in; }
html.vcds-lb-open, html.vcds-lb-open body { overflow: hidden; }
.vcds-lb { position: fixed; inset: 0; z-index: 100000; background: rgba(8, 16, 11, .96); display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; grid-template-rows: 64px minmax(0, 1fr); align-items: center; color: #fff; -webkit-tap-highlight-color: transparent; overscroll-behavior: contain; touch-action: pan-y; }
.vcds-lb[hidden] { display: none; }
.vcds-lb__top { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 20px; align-self: stretch; }
.vcds-lb__count { font: 600 15px/1 system-ui, sans-serif; letter-spacing: .04em; opacity: .85; }
.vcds-lb button { appearance: none; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 48px; height: 48px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: background .15s; }
.vcds-lb button:hover, .vcds-lb button:focus-visible { background: rgba(255, 255, 255, .26); }
.vcds-lb button:focus-visible { outline: 2px solid #E8A33D; outline-offset: 2px; }
.vcds-lb button[hidden] { display: none; }
.vcds-lb__nav { justify-self: center; grid-row: 2; }
.vcds-lb__prev { grid-column: 1; }
.vcds-lb__next { grid-column: 3; }
.vcds-lb__stage { grid-column: 2; grid-row: 2; margin: 0; height: 100%; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding-bottom: 20px; }
.vcds-lb__img { max-width: 100%; max-height: calc(100% - 64px); width: auto; height: auto; object-fit: contain; border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, .45); transition: opacity .2s; user-select: none; -webkit-user-drag: none; }
.vcds-lb.is-loading .vcds-lb__img { opacity: .35; }
.vcds-lb__cap { max-width: 760px; text-align: center; font: 14px/1.45 system-ui, sans-serif; color: rgba(255, 255, 255, .85); padding: 0 8px; }
.vcds-lb__cap a { color: #fff; text-decoration: underline; }
.vcds-lb__cap[hidden] { display: none; }
@media (max-width: 700px) {
	.vcds-lb { grid-template-columns: minmax(0, 1fr); grid-template-rows: 60px minmax(0, 1fr) 76px; }
	.vcds-lb__stage { grid-column: 1; padding: 0 0 6px; }
	.vcds-lb__img { border-radius: 0; max-height: calc(100% - 70px); }
	.vcds-lb__nav { grid-row: 3; align-self: center; }
	.vcds-lb__prev { grid-column: 1; justify-self: start; margin-left: 24px; }
	.vcds-lb__next { grid-column: 1; justify-self: end; margin-right: 24px; }
	.vcds-lb__cap { font-size: 13px; }
}
