/* Keep the page photograph separate from the photographs on the cards. */
@layer albania-locality-review {
  #country-app .classic-conversation-hero > img[data-mw-duplicate-photo] {
    visibility: hidden !important;
  }

  body[data-country="DE"] #country-app .classic-conversation-hero:has(> img[data-mw-duplicate-photo]) > .classic-place-context {
    background-repeat: no-repeat !important;
    background-size: cover !important;
  }

  html body[data-mw-berat-review] #country-app[data-ready-view="region"] .region-unified-hero {
    align-items: start !important;
    justify-content: end !important;
    align-content: end !important;
    padding-inline: clamp(.9rem, 2vw, 1.7rem) !important;
    padding-block-end: clamp(.9rem, 2vw, 1.7rem) !important;
  }

  html body[data-mw-berat-review] #country-app[data-ready-view="region"] .region-unified-hero > .region-hero-identity {
    align-self: start !important;
    justify-self: start !important;
    margin-inline: 0 auto !important;
  }

  html body[data-mw-berat-review] #country-app[data-ready-view="region"] .region-hero-identity h1 {
    margin-block-end: 0 !important;
  }

  html body[data-mw-berat-review][data-mw-country-backdrop]::before {
    opacity: .21 !important;
    filter: saturate(.72) blur(1px) !important;
  }

  html body[data-mw-berat-review][data-classic-flow="section"] #country-app .classic-conversation-hero {
    background-image: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
  }

  html body[data-mw-berat-review][data-classic-flow="section"] #country-app .classic-conversation-hero .classic-place-context h1 {
    font-size: clamp(1.35rem, 2.05vw, 2rem) !important;
    line-height: 1.18 !important;
    text-wrap: balance;
  }

  html body[data-mw-berat-review] #country-app :is(.al-locality-choice,.al-locality-grid,.al-locality-result-grid) {
    min-inline-size: 0;
  }

  html body[data-mw-berat-review] #country-app .al-locality-choice {
    margin-block: .55rem .9rem;
  }

  html body[data-mw-berat-review] #country-app #country-content:has(> .al-locality-choice) > [hidden] {
    display: none !important;
  }

  html body[data-mw-berat-review] #country-app :is(.al-locality-grid,.al-locality-result-grid) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
    gap: .6rem;
    margin: .55rem 0 .9rem;
    padding: 0;
    list-style: none;
  }

  html body[data-mw-berat-review] #country-app .al-locality-grid :is(button,a),
  html body[data-mw-berat-review] #country-app .al-locality-choice > :is(a,button) {
    display: flex;
    align-items: center;
    min-block-size: 2.75rem;
    width: 100%;
    padding: .55rem .8rem;
    border: 1px solid #bda67f;
    border-radius: .6rem;
    background: #f8efdf;
    color: #172c44;
    text-align: start;
    font: 650 .95rem/1.3 system-ui, sans-serif;
    overflow-wrap: anywhere;
    cursor: pointer;
  }

  html body[data-mw-berat-review] #country-app .al-locality-grid {
    max-block-size: min(54vh, 30rem);
    overflow: auto;
    padding: 3px;
  }

  html body[data-mw-berat-review] #country-app .al-locality-grid :is(button,a):is(:hover,:focus-visible) {
    background: #f2deb0;
    outline: 2px solid #193047;
    outline-offset: 2px;
  }

  html body[data-mw-berat-review] #country-app .al-locality-result-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    align-items: stretch;
  }

  html body[data-mw-berat-review] #country-app .al-locality-result-grid .poi-card {
    margin: 0;
    padding: .8rem;
    border: 1px solid #c9b891;
    border-radius: .65rem;
    background: #fff9ee;
    overflow-wrap: anywhere;
  }
}

@layer albania-locality-review {
  html body[data-mw-berat-review] #country-app[data-ready-view="region"] .canonical-hero,
  html body[data-mw-berat-review] #country-app[data-ready-view="region"] .classic-region-navigation {
    align-items: start !important;
    justify-content: end !important;
    align-content: end !important;
    padding-inline: clamp(.9rem, 2vw, 1.7rem) !important;
    padding-block-end: clamp(.9rem, 2vw, 1.7rem) !important;
  }
  html body[data-mw-berat-review] #country-app[data-ready-view="region"]
    :is(.canonical-hero,.classic-region-navigation) > :is(.region-hero-identity,h1) {
    align-self: start !important;
    justify-self: start !important;
    margin-inline: 0 auto !important;
    margin-block-end: 0 !important;
  }
}
