.yas-gallery, .yas-album { --yas-gallery-blue: var(--wp--preset--color--association,#003a6c); --yas-gallery-line: var(--wp--preset--color--divider,#dadfe3); color: #26333d; min-inline-size: 0; overflow-wrap: anywhere; }
.yas-gallery h2, .yas-album h1, .yas-album h2, .yas-album h3 { color: var(--yas-gallery-blue); }
.yas-gallery__layout { display: grid; grid-template-columns: minmax(180px,230px) minmax(0,1fr); gap: 32px; align-items: start; }
.yas-gallery__filters { display: grid; gap: 10px; padding: 20px; background: #f7f7f5; border: 1px solid var(--yas-gallery-line); border-radius: 8px; }
.yas-gallery__filters label { font-weight: 600; font-size: 14px; }
.yas-gallery__filters select { inline-size: 100%; min-block-size: 44px; padding-inline: 10px; border: 1px solid #a7b0b7; border-radius: 4px; background: #fff; font: inherit; }
.yas-gallery__filters button, .yas-album button { font: inherit; cursor: pointer; border: 1px solid var(--yas-gallery-blue); border-radius: 4px; padding: 10px 14px; background: #fff; color: var(--yas-gallery-blue); min-block-size: 44px; }
.yas-gallery__filters button { background: var(--yas-gallery-blue); color: #fff; margin-block-start: 6px; }
.yas-gallery__filters a { font-size: 14px; text-align: center; padding: 5px; }
.yas-gallery__results { min-inline-size: 0; }
.yas-gallery__count { margin-block: 0 16px; color: #5a656d; font-size: 14px; }
.yas-gallery__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.yas-gallery .yas-gallery-card { border: 1px solid var(--yas-gallery-line); border-radius: 8px; background: #fff; overflow: hidden; min-inline-size: 0; }
.yas-gallery .yas-gallery-card__image { position: relative; display: block; aspect-ratio: 4/3; background: #edf0f1; overflow: hidden; }
.yas-gallery .yas-gallery-card__image img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.yas-gallery .yas-gallery-card__image:hover img { filter: brightness(.95); }
.yas-gallery .yas-gallery-card__badge { position: absolute; inset-inline-start: 12px; inset-block-end: 12px; background: #fff; border-radius: 3px; padding: 3px 9px; color: var(--yas-gallery-blue); font-size: 12px; font-weight: 600; }
.yas-gallery .yas-gallery-card__placeholder { display: grid; place-items: center; block-size: 100%; color: #5a656d; }
.yas-gallery .yas-gallery-card__text { padding: 18px; }
.yas-gallery .yas-gallery-card__date { font-size: 12px; color: #65727b; margin-block: 0 8px; }
.yas-gallery .yas-gallery-card h3 { font-size: 19px; line-height: 1.7; margin: 0; }
.yas-gallery .yas-gallery-card h3 a { display: block; text-decoration: none; color: var(--yas-gallery-blue); }
.yas-gallery .yas-gallery-card h3 a:hover { text-decoration: underline; }
.yas-gallery .yas-gallery-card__text > p:not(.yas-gallery .yas-gallery-card__date) { font-size: 14px; line-height: 1.9; margin-block: 10px 0; }
.yas-gallery .yas-gallery-card__related { display: block; margin-block-start: 12px; font-size: 13px; }
.yas-gallery__pagination { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 18px; margin-block: 28px; }
.yas-gallery__pagination a { padding: 8px 12px; border: 1px solid var(--yas-gallery-line); border-radius: 4px; }
.yas-gallery__pagination span { font-size: 14px; }
.yas-gallery__empty { padding: 24px; background: #f7f7f5; border: 1px solid var(--yas-gallery-line); border-radius: 8px; }
.yas-main.yas-album-main { padding: 30px 24px 50px; }
.yas-album__breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; font-size: 13px; margin-block-end: 20px; }
.yas-album__heading { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-block-end: 1px solid var(--yas-gallery-line); padding-block-end: 22px; }
.yas-album__heading h1 { margin: 0; font-size: clamp(26px,3.2vw,38px); line-height: 1.7; }
.yas-album__date { font-size: 13px; color: #65727b; margin: 0 0 6px; }
.yas-album__copy { flex-shrink: 0; font-size: 13px!important; }
.yas-album__lead { font-size: 18px; line-height: 2; max-inline-size: 56rem; }
.yas-album__description { line-height: 2; margin-block: 24px; }
.yas-album__layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(200px,260px); gap: 32px; margin-block-start: 28px; }
.yas-album__media { display: grid; gap: 24px; min-inline-size: 0; align-content: start; }
.yas-album__item { margin: 0; border: 1px solid var(--yas-gallery-line); border-radius: 7px; overflow: hidden; background: #fff; }
.yas-album__item a { display: block; background: #f2f3f3; }
.yas-album__item img { display: block; inline-size: 100%; block-size: auto; max-block-size: 680px; object-fit: contain; }
.yas-album__item figcaption { font-size: 14px; line-height: 1.9; padding: 14px 18px; }
.yas-album video { display: block; inline-size: 100%; background: #111; max-block-size: 650px; }
.yas-album__provider { padding: 20px; border: 1px solid var(--yas-gallery-line); border-radius: 7px; background: #f7f7f5; }
.yas-album__provider p { font-size: 14px; line-height: 1.9; }
.yas-album__provider iframe { inline-size: 100%; aspect-ratio: 16/9; border: 0; display: block; }
.yas-album__sidebar { padding: 20px; border: 1px solid var(--yas-gallery-line); border-block-start: 4px solid #c5a465; border-radius: 7px; align-self: start; background: #f7f7f5; }
.yas-album__sidebar h2 { margin: 0 0 14px; font-size: 20px; }
.yas-album__sidebar h3 { font-size: 17px; }
.yas-album__sidebar p, .yas-album__sidebar li, .yas-album__sidebar > a { font-size: 14px; line-height: 1.9; }
.yas-album__sidebar ul { padding-inline-start: 20px; }
.yas-album__status { position: absolute; inset-inline-end: 0; inset-block-start: 100%; z-index: 10; max-inline-size: min(90vw,400px); margin: 8px 0 0; padding: 10px 14px; border: 1px solid #becbd5; border-radius: 5px; background: #fff; box-shadow: 0 3px 14px #0002; font-size: 14px; opacity: 0; visibility: hidden; pointer-events: none; }
.yas-album__status.is-visible { opacity: 1; visibility: visible; }
.yas-lightbox { inline-size: min(94vw,1200px); max-inline-size: none; max-block-size: 94vh; padding: 18px; border: 0; border-radius: 8px; background: #111b26; color: #fff; overflow: auto; }
.yas-lightbox::backdrop { background: #000c; }
.yas-lightbox figure { margin: 14px 0; }
.yas-lightbox img { display: block; max-inline-size: 100%; max-block-size: 70vh; inline-size: auto; margin-inline: auto; object-fit: contain; }
.yas-lightbox figcaption { line-height: 1.8; text-align: center; margin-block-start: 12px; }
.yas-lightbox .yas-lightbox__controls { display: flex; align-items: center; justify-content: center; gap: 18px; }
.yas-lightbox button { background: #fff; color: #17344f; }
.yas-lightbox button:disabled { opacity: .4; cursor: default; }
@media(max-width:1100px) { .yas-gallery__grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:850px) { .yas-gallery__layout { grid-template-columns: 1fr; gap: 20px; } .yas-gallery__filters { grid-template-columns: 1fr 1fr; gap: 8px 14px; } .yas-gallery__filters label { grid-row: 1; } .yas-gallery__filters select { grid-row: 2; } .yas-gallery__filters button { margin: 0; } .yas-album__layout { grid-template-columns: 1fr; } }
@media(max-width:520px) { .yas-gallery__grid { grid-template-columns: 1fr; } .yas-gallery .yas-gallery-card__text { padding: 16px; } .yas-gallery__filters { padding: 14px; } .yas-main.yas-album-main { padding: 20px 16px 36px; } .yas-album__heading { align-items: start; flex-direction: column; gap: 12px; } .yas-album__layout { gap: 20px; } .yas-lightbox { padding: 12px; } .yas-lightbox img { max-block-size: 60vh; } }

html:has(.yas-lightbox:modal) { overflow: hidden; scrollbar-gutter: stable; }
