.cms-gallery-page .ce-gallery-heading .ce-media-switch {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  grid-column:1;
  grid-row:1;
  position:relative;
  z-index:2;
  width:fit-content;
  max-width:100%;
  margin:0;
  padding:0;
}
.cms-gallery-page .ce-media-switch h1 {
  display:contents;
  pointer-events:auto;
}
.cms-gallery-page .ce-media-switch a {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  min-height:40px;
  padding:7px 13px;
  border:1px solid #a4c9db;
  border-radius:9px;
  background:#fff;
  color:#194d70;
  font:500 clamp(16px,1.6vw,21px)/1.25 Inter,system-ui,sans-serif;
  text-decoration:none;
  white-space:nowrap;
}
.cms-gallery-page .ce-media-switch a[aria-current="page"] {
  background:#14678e;
  color:#fff;
  border-color:#14678e;
  font-weight:650;
}
.cms-gallery-page .ce-media-switch a:hover {box-shadow:inset 0 0 0 1px #278ab5}
.cms-gallery-page .ce-media-switch a:focus-visible {outline:3px solid #e68c31;outline-offset:2px}
@media(max-width:767px) {
  .cms-gallery-page .ce-gallery-heading {grid-template-columns:minmax(0,1fr)}
  .cms-gallery-page .ce-gallery-heading .ce-video-search-panel {grid-row:2;grid-column:1;margin-top:6px}
  .cms-gallery-page .ce-media-switch a {font-size:16px;padding:7px 12px}
}
@layer klinik-tema {
  @media screen and (min-width:768px) {
    html[data-klinik-tema="koyu"] .cms-gallery-page .ce-media-switch a {
      background:#203547 !important;
      color:#edf5fa !important;
      border-color:#668399 !important;
    }
    html[data-klinik-tema="koyu"] .cms-gallery-page .ce-media-switch a[aria-current="page"] {
      background:#245f82 !important;
      color:#fff !important;
      border-color:#a5ddff !important;
      box-shadow:inset 0 -3px #a5ddff !important;
    }
  }
}

@layer klinik-tema {
  @media screen {
    html[data-klinik-tema="koyu"] .site-box .cms-gallery-page .ce-video-search-panel > summary {
      background:#243e50 !important;
      color:#edf5fa !important;
      -webkit-text-fill-color:#edf5fa !important;
      border-color:#668399 !important;
      box-shadow:none !important;
    }
    html[data-klinik-tema="koyu"] .site-box .cms-gallery-page .ce-video-search-panel[open] > summary,
    html[data-klinik-tema="koyu"] .site-box .cms-gallery-page .ce-video-search-panel > summary:hover {
      background:#304f65 !important;
    }
    html[data-klinik-tema="koyu"] .site-box .cms-gallery-page .ce-video-search-panel .ce-gallery-search {
      background:#1a2c3c !important;
      color:#edf5fa !important;
      border-color:#496276 !important;
      box-shadow:0 4px 14px #050c1433 !important;
    }
    html[data-klinik-tema="koyu"] .site-box .cms-gallery-page .ce-gallery-search input {
      background:#142432 !important;
      color:#edf5fa !important;
      -webkit-text-fill-color:#edf5fa !important;
      border-color:#668399 !important;
      caret-color:#fff !important;
    }
    html[data-klinik-tema="koyu"] .site-box .cms-gallery-page .ce-gallery-search input::placeholder {
      color:#c4d6e3 !important;
      -webkit-text-fill-color:#c4d6e3 !important;
      opacity:1 !important;
    }
    html[data-klinik-tema="koyu"] .site-box .cms-gallery-page .ce-gallery-search button {
      background:#245f82 !important;
      color:#fff !important;
      -webkit-text-fill-color:#fff !important;
      border:1px solid #81bbd9 !important;
    }
    html[data-klinik-tema="koyu"] .site-box .cms-gallery-page .ce-gallery-search button:hover {
      background:#307599 !important;
    }
    html[data-klinik-tema="koyu"] .site-box .cms-gallery-page .ce-gallery-search a {
      background:transparent !important;
      color:#b6e3ff !important;
      -webkit-text-fill-color:#b6e3ff !important;
      text-decoration:underline;
    }
    html[data-klinik-tema="koyu"] .site-box .cms-gallery-page .ce-video-search-panel
      :is(summary,input,button,a):focus-visible {
      outline:2px solid #a5ddff !important;
      outline-offset:3px !important;
    }
  }
}

@media screen and (max-width:767px) {
  .cms-gallery-page.ce-video-page .ce-gallery-heading {
    grid-template-columns:minmax(0,1fr) auto;
  }
  .cms-gallery-page.ce-video-page .ce-gallery-heading .ce-media-switch {
    align-self:start;
    flex-wrap:nowrap;
    gap:4px;
    max-width:calc(100% - 92px);
  }
  .cms-gallery-page.ce-video-page .ce-media-switch a {
    min-height:40px;
    padding:6px 8px;
    font-size:14px;
  }
  .cms-gallery-page.ce-video-page .ce-gallery-heading .ce-video-search-panel {
    grid-column:1 / -1;
    grid-row:1;
    margin-top:0;
    min-width:0;
  }
  .cms-gallery-page.ce-video-page .ce-gallery-heading .ce-video-search-panel > summary {
    display:list-item;
    box-sizing:border-box;
    min-height:40px;
    padding:9px 8px;
    font-size:13px;
    line-height:20px;
    white-space:nowrap;
  }
  .cms-gallery-page.ce-video-page .ce-video-search-panel[open] .ce-gallery-search {
    margin-top:8px;
  }
}

/* Use the available width for up to four photo albums. */
.cms-gallery-page .cms-gallery-grid.ce-albums {
  grid-template-columns:repeat(var(--ce-album-columns,4),minmax(0,1fr));
  gap:16px;
}
.cms-gallery-page .ce-albums > .ce-album-card {
  min-width:0;
  width:100%;
  box-sizing:border-box;
}
@media screen and (max-width:767px) {
  .cms-gallery-page .cms-gallery-grid.ce-albums {
    grid-template-columns:minmax(0,1fr);
    gap:14px;
  }
}
