/* =====================================================================
   Computer Xperts — event pages (css/events.css)
   xperts-events-gallery.html, xperts-2022-seminar.html, xperts-2021-seminar.html,
   development-houses-xperts.html. Loaded after css/csr.css (hero snapshots, caption pill).

   Contents
    1. Facts strip under the hero
    2. Photos: seminar wall, Development Houses blocks
    3. Events Gallery: seminar / houses features, photo albums
    4. "More from Xperts" cards
    5. Responsive: 1023px, 640px, 420px
   ===================================================================== */


/* 1. Facts strip --------------------------------------------------------- */
.ev-facts { background: var(--white); border-bottom: 1px solid var(--line); }
.ev-facts ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ev-facts li { display: flex; align-items: center; gap: 12px; padding: 22px 18px; font-weight: 800; line-height: 1.3; }
.ev-facts li + li { border-left: 1px solid var(--line); }
.ev-facts .ic { flex: none; width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: #fdecec; color: var(--red); }
.ev-facts small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }


/* 2. Photos -------------------------------------------------------------- */
.shot, .ev-card, .ev-feature, .ev-album { text-decoration: none; }
.shot { position: relative; display: block; height: 100%; overflow: hidden; border-radius: 12px; background: var(--line); }
/* photo that zooms a little under the pointer (also the gallery's feature and album tiles, section 3) */
.shot img, .ev-feature img, .ev-album img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.shot:hover img, .ev-feature:hover img, .ev-album:hover img { transform: scale(1.04); }

/* seminar wall: even rows, the first photo twice as big */
.ev-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 190px; gap: 12px; }
.ev-wall li:first-child { grid-column: span 2; grid-row: span 2; }

/* Development Houses: one numbered block per area */
.ev-block + .ev-block { margin-top: 56px; }
.ev-block__title { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; font-size: clamp(22px, 2.4vw, 28px); }
.ev-block__title span { color: var(--red); font-size: 15px; font-weight: 800; letter-spacing: .08em; }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); grid-auto-rows: 230px; gap: 12px; }
.ev-grid:has(> li:nth-child(2):last-child) { grid-auto-rows: 320px; }   /* two photos: larger */

.shot--team img { height: auto; aspect-ratio: 1400 / 573; }


/* 3. Events Gallery -------------------------------------------------------- */
.ev-features { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: repeat(2, 260px); gap: 16px; }
.ev-features li:first-child { grid-row: span 2; }
.ev-feature, .ev-album { position: relative; display: block; height: 100%; overflow: hidden; border-radius: 14px; background: var(--ink); color: var(--white); }
.ev-feature::after, .ev-album::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .82));
}
.ev-feature__body, .ev-album__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; gap: 4px; padding: 22px 70px 22px 22px; }
.ev-feature__body small, .ev-album__body small, .ev-album__body span { display: inline-flex; align-items: center; gap: 6px; color: #e4e4e4; font-size: 13px; font-weight: 700; }
.ev-feature__body .ic, .ev-album__body .ic { width: 15px; height: 15px; }
.ev-feature__body b { font-size: clamp(20px, 2vw, 26px); line-height: 1.2; }
.ev-feature__body span { color: #e4e4e4; font-size: 15px; }

.ev-albums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ev-album { aspect-ratio: 4 / 3; }
.ev-album__body { padding: 16px; }
.ev-album__body b { font-size: 16px; line-height: 1.25; }
.ev-albums + .teaser { margin-top: 32px; }


/* 4. "More from Xperts" cards ------------------------------------------- */
.ev-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ev-card { position: relative; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--ink); }
.ev-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.ev-card__body { display: grid; gap: 3px; padding: 16px 64px 18px 18px; }
.ev-card__body small { color: var(--muted); font-size: 13px; font-weight: 700; }
.ev-card__body b { font-size: 17px; line-height: 1.25; }
.ev-card__go {
  position: absolute; right: 16px; bottom: 18px; z-index: 1; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: var(--white); transition: transform .25s ease;
}
.ev-card__go .ic { width: 18px; height: 18px; }
.ev-card:hover .ev-card__go, .ev-feature:hover .ev-card__go { transform: translateX(4px); }
.ev-card:hover b { color: var(--red-text); }


/* 5. Responsive ------------------------------------------------------------ */
@media (max-width: 1023px) {
  .ev-facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev-facts li:nth-child(3) { border-left: 0; }
  .ev-facts li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .ev-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 160px; }
  .ev-albums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev-features { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 220px; }
  .ev-features li:first-child { grid-row: auto; grid-column: span 2; }
}

@media (max-width: 640px) {
  .ev-facts li { padding: 16px 10px; gap: 9px; font-size: 14px; }
  .ev-facts .ic { width: 32px; height: 32px; padding: 7px; }
  .ev-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 130px; gap: 8px; }
  .ev-grid, .ev-grid:has(> li:nth-child(2):last-child) { grid-template-columns: 1fr; grid-auto-rows: 220px; gap: 8px; }
  .ev-features { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 270px; gap: 12px; }
  .ev-feature__body { padding: 18px 64px 18px 18px; }
  .ev-features li:first-child { grid-column: auto; }
  .ev-albums { grid-template-columns: 1fr; gap: 12px; }
  .ev-album { aspect-ratio: 16 / 10; }
  .ev-cards { grid-template-columns: 1fr; }
  .ev-block + .ev-block { margin-top: 40px; }
}

@media (max-width: 420px) {   /* small phones: one fact per row, so long venues and team lists are not squeezed */
  .ev-facts ul { grid-template-columns: 1fr; }
  .ev-facts li { padding: 12px 4px; }
  .ev-facts li + li { border-left: 0; border-top: 1px solid var(--line); }
}
