/* Gallery, generated by extract/build_gallery.py.
   Everything is scoped under .gx- so it cannot collide with Master.min.css. */

.gx-wrap { max-width: 1180px; margin: 0 auto; padding: 24px 20px 64px; }

.gx-head { display: flex; align-items: center; justify-content: space-between;
           flex-wrap: wrap; gap: 16px; }
.gx-wrap h1 { margin: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.2; }
.gx-count { margin: 6px 0 0; color: #6b7280; font-size: 14px; }
.gx-notes { margin: 12px 0 0; max-width: 70ch; line-height: 1.6; color: #374151; }

.gx-filter { display: block; width: 100%; max-width: 420px; margin: 22px 0 0;
             padding: 11px 14px; font: inherit; font-size: 15px;
             border: 1px solid #d1d5db; border-radius: 8px; background: #fff; }
.gx-filter:focus { outline: 2px solid #2563eb; outline-offset: 1px; border-color: transparent; }
.gx-noresult { margin: 24px 0; color: #6b7280; }

.gx-year { margin-top: 40px; }
.gx-year__title { display: flex; align-items: baseline; gap: 12px;
                  margin: 0 0 16px; padding-bottom: 8px;
                  border-bottom: 1px solid #e5e7eb; font-size: 20px; }
.gx-year__title span { font-size: 13px; font-weight: 400; color: #9ca3af; }

.gx-grid { display: grid; gap: 18px;
           grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.gx-grid--photos { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px;
                   margin-top: 24px; }

.gx-card { display: flex; flex-direction: column; text-decoration: none; color: inherit;
           border-radius: 10px; overflow: hidden; background: #fff;
           box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.05);
           transition: transform .15s ease, box-shadow .15s ease; }
.gx-card:hover, .gx-card:focus-visible { transform: translateY(-2px);
           box-shadow: 0 6px 18px rgba(0,0,0,.11), 0 0 0 1px rgba(0,0,0,.06); }
/* position:absolute on the image, or a portrait cover overrides aspect-ratio and
   makes its row taller than every other card. */
.gx-card__img { position: relative; display: block; aspect-ratio: 4 / 3;
                overflow: hidden; background: #f3f4f6; }
.gx-card__img img { position: absolute; inset: 0; width: 100%; height: 100%;
                    object-fit: cover; display: block; }
.gx-card__body { padding: 12px 14px 14px; }
.gx-card__title { display: block; font-weight: 600; font-size: 15px; line-height: 1.35;
                  /* Captions run long; two lines keeps the grid even. */
                  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
                  overflow: hidden; }
.gx-card__meta { display: block; margin-top: 6px; font-size: 13px; color: #6b7280; }

.gx-photo { position: relative; display: block; aspect-ratio: 1 / 1;
            background: #f3f4f6; border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.gx-photo img { position: absolute; inset: 0; width: 100%; height: 100%;
                object-fit: cover; display: block; transition: transform .2s ease; }
.gx-photo:hover img { transform: scale(1.04); }

.gx-back { display: inline-block; margin-bottom: 14px; font-size: 14px;
           color: #2563eb; text-decoration: none; }
.gx-back:hover { text-decoration: underline; }

.gx-siblings { display: flex; justify-content: space-between; gap: 20px;
               margin-top: 48px; padding-top: 20px; border-top: 1px solid #e5e7eb;
               font-size: 14px; }
.gx-siblings a { color: #374151; text-decoration: none; max-width: 45%; }
.gx-siblings a:hover { color: #2563eb; text-decoration: underline; }
.gx-next { margin-left: auto; text-align: right; }

/* Lightbox */
.gx-lb { position: fixed; inset: 0; z-index: 9999; background: rgba(15,17,21,.94);
         display: flex; align-items: center; justify-content: center; }
.gx-lb[hidden] { display: none; }
.gx-lb__img { max-width: 92vw; max-height: 88vh; object-fit: contain;
              border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.gx-lb__close, .gx-lb__nav { position: absolute; background: none; border: 0;
              color: #fff; cursor: pointer; line-height: 1; opacity: .75;
              transition: opacity .15s ease; }
.gx-lb__close:hover, .gx-lb__nav:hover { opacity: 1; }
.gx-lb__close { top: 14px; right: 20px; font-size: 40px; }
.gx-lb__nav { top: 50%; transform: translateY(-50%); font-size: 64px; padding: 0 18px; }
.gx-lb__nav--prev { left: 4px; }
.gx-lb__nav--next { right: 4px; }
.gx-lb__counter { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
                  color: #d1d5db; font-size: 13px; letter-spacing: .04em; }

@media (max-width: 600px) {
  .gx-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .gx-grid--photos { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
  .gx-lb__nav { font-size: 44px; padding: 0 8px; }
}

/* Video page */
.gx-videos { display: grid; gap: 28px; margin-top: 26px;
             grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
/* Master.min.css styles bare <article> as display:flex, which collapses the frame to
   zero width. Own the layout rather than inherit the old theme's. */
.gx-video { display: block; }
.gx-video__frame { position: relative; aspect-ratio: 16 / 9; background: #111;
                   border-radius: 10px; overflow: hidden; }
.gx-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gx-video__title { margin: 12px 0 0; font-size: 17px; line-height: 1.35; }
.gx-video__author { margin: 4px 0 0; font-size: 13px; color: #9ca3af; }
.gx-video__caption { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: #4b5563; }

.gx-archive { margin-top: 52px; padding-top: 20px; border-top: 1px solid #e5e7eb; }
.gx-archive summary { cursor: pointer; font-weight: 600; font-size: 15px; color: #374151; }
.gx-archive__note { margin: 12px 0 0; max-width: 70ch; font-size: 14px; line-height: 1.6;
                    color: #6b7280; }
.gx-archive__list { margin: 16px 0 0; padding-left: 20px; max-width: 78ch; }
.gx-archive__list li { margin-bottom: 12px; font-size: 14px; line-height: 1.6; color: #4b5563; }

/* ---- CMS-only additions (the .gx- rules above are shared with the static mirror) ---- */

.gx-year__title span a { color: #2563eb; text-decoration: none; font-weight: 500; }
.gx-year__title span a:hover { text-decoration: underline; }

.dv-docs { list-style: none; margin: 26px 0 0; padding: 0; max-width: 820px; }
.dv-doc { padding: 14px 0; border-bottom: 1px solid #e5e7eb; }
.dv-doc a { font-weight: 600; font-size: 15px; color: #1f2937; text-decoration: none; }
.dv-doc a:hover { color: #2563eb; text-decoration: underline; }
.dv-doc__meta { display: block; margin-top: 4px; font-size: 13px; color: #6b7280; }
.dv-doc__warn { color: #b45309; }

.dv-post { padding: 22px 0; border-bottom: 1px solid #e5e7eb; max-width: 78ch; }
.dv-post__title { margin: 0; font-size: 19px; line-height: 1.35; }
.dv-post__date { margin: 4px 0 0; font-size: 13px; color: #9ca3af; }
.dv-post__text { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: #374151; }

/* Home page heading. It used Prata from Google Fonts, which sent every visitor to Google;
   now it is Open Sans Bold from the site's own files. Master.min.css declares Open Sans too,
   but its @font-face rules name the family "'Open Sans',sans-serif", which browsers reject, so
   that font has never actually loaded on this site. This face has its own name and a valid
   rule, and changes nothing but the heading. */
@font-face { font-family: "DV Open Sans"; font-weight: 700; font-style: normal; font-display: swap;
             src: url("/media/Shared/Fonts/Open_Sans/OpenSans-Bold.woff2@v=20.07.10") format("woff2"); }
.home .hero > h1, .home-index .hero > h1 { font-family: "DV Open Sans", "Open Sans", Arial, sans-serif;
                                            font-weight: 700; }

/* RO • EN. Master.min.css styled these as <button>s in a form; they are links now, so the
   same look is restated here, including the blue for the language being shown. */
header #h-group__language a { font: 400 14px/1.5 "Open Sans", sans-serif; color: #22262a;
    padding: 12px; margin: -12px 0; text-decoration: none; }
header #h-group__language a:hover { text-decoration: underline; }
header #h-group__language a[aria-current] { color: #72a4cf; }

/* the footer's only menu entry: the privacy policy */
footer .footer-menu a { font-size: 14px; color: inherit; text-decoration: none; }
footer .footer-menu a:hover { text-decoration: underline; }

/* Contact form: the anti-spam field is for bots only, and the privacy note sits under the
   button. .hp is off-screen rather than display:none, which some bots check for. */
.contact-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .dv-form-note { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: #6b7280; }
.contact-form .dv-form-note a { color: inherit; text-decoration: underline; }

/* Contact result and the privacy policy */
.dv-notice { max-width: 64ch; margin: 22px 0 0; padding: 16px 18px; border-radius: 10px;
             font-size: 15px; line-height: 1.6; }
.dv-notice--ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.dv-notice--error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.dv-notice a { color: inherit; }

.dv-legal { max-width: 78ch; font-size: 15px; line-height: 1.65; color: #374151; }
.dv-legal h2 { margin: 34px 0 8px; font-size: 19px; color: #1f2937; }
.dv-legal ul { padding-left: 20px; }
.dv-legal li { margin-bottom: 6px; }
.dv-legal a { color: #2563eb; }
.dv-legal__updated { margin: 6px 0 0; font-size: 13px; color: #6b7280; }
