/* Makintest saha ve etkinlik galerisi */

.mk-page-hero.mk-gallery-page-hero {
  min-height: 470px;
  background-image:
    linear-gradient(90deg, rgba(9, 24, 31, 0.97) 0%, rgba(9, 24, 31, 0.82) 50%, rgba(9, 24, 31, 0.42) 100%),
    url("../img/makintest/gallery/proses-yangin-guvenligi-sempozyumu-2026/proses-yangin-01.webp");
  background-position: center 37%;
}

.mk-gallery-page-hero p {
  max-width: 690px;
}

.mk-gallery-intro {
  padding-bottom: 58px;
}

.mk-section.mk-gallery-catalogue {
  padding-top: 0;
}

.mk-gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  padding: 15px;
  border: 1px solid var(--mk-line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--mk-shadow-sm);
}

.mk-gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mk-gallery-filter {
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--mk-navy);
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.mk-gallery-filter span {
  min-width: 23px;
  margin-left: 5px;
  padding: 3px 6px;
  border-radius: 999px;
  color: var(--mk-muted);
  background: var(--mk-soft);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.mk-gallery-filter:hover {
  border-color: var(--mk-line);
  background: var(--mk-soft);
}

.mk-gallery-filter.is-active {
  color: #fff;
  background: var(--mk-ink);
}

.mk-gallery-filter.is-active span {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.mk-gallery-toolbar-note {
  flex: none;
  margin: 0 13px 0 0;
  color: var(--mk-muted);
  font-size: 13px;
  font-weight: 650;
}

.mk-gallery-toolbar-note i {
  margin-right: 5px;
  color: var(--mk-orange);
  font-size: 18px;
  vertical-align: -2px;
}

.mk-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.mk-gallery-album {
  min-width: 0;
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius);
  background: #fff;
  box-shadow: 0 13px 34px rgba(16, 29, 35, 0.07);
  overflow: hidden;
}

.mk-gallery-album--wide {
  grid-column: span 2;
}

.mk-gallery-album-link {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: inherit;
}

.mk-gallery-album--wide .mk-gallery-album-link {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(270px, 0.75fr);
}

.mk-gallery-cover {
  position: relative;
  min-height: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--mk-ink);
}

.mk-gallery-album--wide .mk-gallery-cover {
  height: 100%;
  min-height: 390px;
  aspect-ratio: auto;
}

.mk-gallery-cover::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 56%, rgba(7, 19, 25, 0.66));
  content: "";
}

.mk-gallery-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s cubic-bezier(0.2, 0.72, 0.2, 1);
}

.mk-gallery-album-link:hover .mk-gallery-cover img {
  transform: scale(1.035);
}

.mk-gallery-count {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 15px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff;
  background: rgba(9, 24, 31, 0.76);
  font-size: 12px;
  font-weight: 750;
  backdrop-filter: blur(7px);
}

.mk-gallery-count i {
  color: var(--mk-orange);
  font-size: 17px;
}

.mk-gallery-album-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 27px;
}

.mk-gallery-kind {
  color: var(--mk-orange);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.11em;
  line-height: 1.3;
  text-transform: uppercase;
}

.mk-gallery-album h3 {
  margin-top: 11px;
  color: var(--mk-navy);
  font-size: 24px;
  font-weight: 750;
  line-height: 1.24;
}

.mk-gallery-album--wide h3 {
  font-size: 29px;
}

.mk-gallery-album-description {
  margin: 12px 0 0;
  color: var(--mk-muted);
  font-size: 14px;
  line-height: 1.55;
}

.mk-gallery-meta {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.mk-gallery-meta span {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 8px;
  color: var(--mk-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.mk-gallery-meta i {
  margin-top: 1px;
  color: var(--mk-orange);
  font-size: 17px;
}

.mk-gallery-open-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 23px;
  color: var(--mk-navy);
  font-size: 14px;
  font-weight: 800;
}

.mk-gallery-open-label i {
  color: var(--mk-orange);
  font-size: 18px;
  transition: transform 0.18s ease;
}

.mk-gallery-album-link:hover .mk-gallery-open-label i {
  transform: translateX(4px);
}

.mk-gallery-grid[data-active-filter="saha"] {
  grid-template-columns: minmax(0, 820px);
}

.mk-gallery-grid[data-active-filter="saha"] .mk-gallery-album,
.mk-gallery-grid[data-active-filter="etkinlik"] .mk-gallery-album,
.mk-gallery-grid[data-active-filter="ziyaret"] .mk-gallery-album {
  grid-column: span 1;
}

.mk-gallery-grid[data-active-filter="ziyaret"] {
  grid-template-columns: minmax(0, 820px);
}

.mk-gallery-grid[data-active-filter="saha"] .mk-gallery-album-link,
.mk-gallery-grid[data-active-filter="ziyaret"] .mk-gallery-album-link {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
}

.mk-gallery-grid[data-active-filter="saha"] .mk-gallery-cover,
.mk-gallery-grid[data-active-filter="ziyaret"] .mk-gallery-cover {
  height: 100%;
  min-height: 400px;
  aspect-ratio: auto;
}

/* Ana sayfa fotoğraf seçkisi */
.mk-home-gallery {
  position: relative;
  color: #fff;
  background: var(--mk-ink);
  overflow: hidden;
}

.mk-home-gallery::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  pointer-events: none;
}

.mk-home-gallery .mk-container {
  position: relative;
}

.mk-home-gallery .mk-section-head h2 {
  color: #fff;
}

.mk-home-gallery .mk-section-head p {
  color: rgba(255, 255, 255, 0.64);
}

.mk-home-gallery-head-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.mk-home-gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  grid-template-rows: repeat(2, 258px);
  gap: 18px;
}

.mk-home-gallery-card {
  position: relative;
  display: flex;
  min-height: 0;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--mk-radius);
  background: #0a171d;
}

.mk-home-gallery-card--large {
  grid-row: 1 / span 2;
}

.mk-home-gallery-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.2, 0.72, 0.2, 1);
}

.mk-home-gallery-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 16, 21, 0.04) 25%, rgba(6, 16, 21, 0.88) 100%);
  content: "";
}

.mk-home-gallery-card:hover img {
  transform: scale(1.035);
}

.mk-home-gallery-card-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 25px;
}

.mk-home-gallery-card-copy span {
  color: var(--mk-orange);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.mk-home-gallery .mk-home-gallery-card-copy h3 {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 8px;
  color: #fff;
  font-size: 25px;
  font-weight: 750;
  line-height: 1.2;
}

.mk-home-gallery-card--large h3 {
  max-width: 650px;
  font-size: clamp(31px, 3.5vw, 49px);
}

.mk-home-gallery-card-copy i {
  flex: none;
  color: var(--mk-orange);
  font-size: 25px;
  transition: transform 0.18s ease;
}

.mk-home-gallery-card:hover .mk-home-gallery-card-copy i {
  transform: translateX(4px);
}

/* Erişilebilir fotoğraf görüntüleyici */
.mk-gallery-dialog {
  width: min(1240px, calc(100vw - 38px));
  max-width: none;
  height: min(900px, calc(100dvh - 38px));
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 20px;
  color: #fff;
  background: transparent;
  overflow: hidden;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.48);
}

.mk-gallery-dialog::backdrop {
  background: rgba(3, 10, 13, 0.88);
  backdrop-filter: blur(5px);
}

.mk-gallery-dialog-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  background: #08171d;
}

.mk-gallery-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 76px;
  padding: 15px 18px 15px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mk-gallery-dialog-heading {
  min-width: 0;
}

.mk-gallery-dialog-kicker {
  display: block;
  color: var(--mk-orange);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mk-gallery-dialog-title {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #fff;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mk-gallery-dialog-close,
.mk-gallery-dialog-nav {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  font-size: 23px;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.mk-gallery-dialog-close:hover,
.mk-gallery-dialog-nav:hover {
  border-color: var(--mk-orange);
  background: var(--mk-orange);
}

.mk-gallery-dialog-stage {
  position: relative;
  display: grid;
  min-height: 0;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 10px;
  padding: 20px;
}

.mk-gallery-dialog-figure {
  display: grid;
  min-width: 0;
  min-height: 0;
  height: 100%;
  grid-template-rows: minmax(0, 1fr) auto;
  margin: 0;
}

.mk-gallery-dialog-image-shell {
  position: relative;
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 13px;
  background: #040c0f;
}

.mk-gallery-dialog-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.16s ease;
}

.mk-gallery-dialog.is-loading .mk-gallery-dialog-image {
  opacity: 0.25;
}

.mk-gallery-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transform: translate(-50%, -50%);
}

.mk-gallery-dialog.is-loading .mk-gallery-loading {
  opacity: 1;
}

.mk-gallery-dialog-caption {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 17px;
  min-height: 64px;
  padding: 16px 4px 0;
}

.mk-gallery-dialog-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--mk-orange);
  font-size: 12px;
  font-weight: 850;
}

.mk-gallery-dialog-caption p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.5;
}

.mk-gallery-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.mk-gallery-dialog-open {
  overflow: hidden;
}

@media (max-width: 1099px) {
  .mk-gallery-album--wide .mk-gallery-album-link,
  .mk-gallery-grid[data-active-filter="saha"] .mk-gallery-album-link,
  .mk-gallery-grid[data-active-filter="ziyaret"] .mk-gallery-album-link {
    grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
  }

  .mk-gallery-album h3 {
    font-size: 21px;
  }

  .mk-gallery-album--wide h3 {
    font-size: 25px;
  }
}

@media (max-width: 991px) {
  .mk-page-hero.mk-gallery-page-hero {
    min-height: 420px;
    background-position: 42% center;
  }

  .mk-gallery-toolbar {
    align-items: flex-start;
    border-radius: var(--mk-radius);
  }

  .mk-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mk-gallery-album--wide {
    grid-column: span 2;
  }

  .mk-gallery-album--wide .mk-gallery-album-link,
  .mk-gallery-grid[data-active-filter="saha"] .mk-gallery-album-link,
  .mk-gallery-grid[data-active-filter="ziyaret"] .mk-gallery-album-link {
    display: flex;
  }

  .mk-gallery-album--wide .mk-gallery-cover,
  .mk-gallery-grid[data-active-filter="saha"] .mk-gallery-cover,
  .mk-gallery-grid[data-active-filter="ziyaret"] .mk-gallery-cover {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 8;
  }

  .mk-gallery-grid[data-active-filter="saha"],
  .mk-gallery-grid[data-active-filter="ziyaret"] {
    grid-template-columns: minmax(0, 1fr);
  }

  .mk-home-gallery-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    grid-template-rows: repeat(2, 225px);
  }

  .mk-gallery-dialog-stage {
    grid-template-columns: 58px minmax(0, 1fr) 58px;
    padding: 15px;
  }
}

@media (max-width: 767px) {
  .mk-page-hero.mk-gallery-page-hero {
    min-height: 410px;
    background-position: 47% center;
  }

  .mk-gallery-intro {
    padding-bottom: 42px;
  }

  .mk-gallery-toolbar {
    display: block;
    margin-bottom: 24px;
    padding: 12px;
  }

  .mk-gallery-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mk-gallery-filter {
    width: 100%;
    padding-inline: 10px;
  }

  .mk-gallery-toolbar-note {
    margin: 14px 7px 3px;
  }

  .mk-gallery-grid,
  .mk-gallery-grid[data-active-filter="etkinlik"] {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .mk-gallery-album--wide {
    grid-column: span 1;
  }

  .mk-gallery-album--wide .mk-gallery-cover,
  .mk-gallery-grid[data-active-filter="saha"] .mk-gallery-cover,
  .mk-gallery-grid[data-active-filter="ziyaret"] .mk-gallery-cover {
    aspect-ratio: 4 / 3;
  }

  .mk-gallery-album-copy {
    padding: 23px;
  }

  .mk-gallery-album--wide h3 {
    font-size: 23px;
  }

  .mk-home-gallery .mk-section-head {
    margin-bottom: 30px;
  }

  .mk-home-gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .mk-home-gallery-card,
  .mk-home-gallery-card--large {
    grid-row: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .mk-home-gallery-card--large h3,
  .mk-home-gallery-card-copy h3 {
    font-size: 25px;
  }

  .mk-gallery-dialog {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }

  .mk-gallery-dialog-head {
    min-height: 68px;
    padding: 11px 12px 11px 16px;
  }

  .mk-gallery-dialog-title {
    max-width: calc(100vw - 100px);
    font-size: 15px;
  }

  .mk-gallery-dialog-close {
    width: 44px;
    height: 44px;
  }

  .mk-gallery-dialog-stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr) 48px;
    gap: 10px;
    padding: 10px 12px 14px;
  }

  .mk-gallery-dialog-figure {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .mk-gallery-dialog-nav {
    position: static;
    width: 100%;
    height: 48px;
    border-radius: 10px;
  }

  .mk-gallery-dialog-nav--previous {
    grid-column: 1;
    grid-row: 2;
  }

  .mk-gallery-dialog-nav--next {
    grid-column: 2;
    grid-row: 2;
  }

  .mk-gallery-dialog-caption {
    grid-template-columns: auto 1fr;
    min-height: 73px;
    padding-top: 12px;
  }

  .mk-gallery-dialog-caption p {
    font-size: 12px;
    line-height: 1.4;
  }
}

@media (max-width: 420px) {
  .mk-gallery-filters {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mk-gallery-cover img,
  .mk-home-gallery-card img,
  .mk-gallery-dialog-image,
  .mk-gallery-open-label i,
  .mk-home-gallery-card-copy i {
    transition: none;
  }
}
