/* Author: SiberMimar "Guray Avci" | www.sibermimar.com.tr */

body:not(.home) {
  --polat-inset: clamp(18px, 4vw, 56px);
  --polat-section-space: clamp(42px, 6vw, 82px);
  --polat-reading-ink: #203c4b;
}

.polat-photo-page #content main {
  min-inline-size: 0;
}

.polat-photo-page #content main :is([data-elementor-type="wp-page"], [data-elementor-type="wp-post"]) > .e-parent:first-child {
  --min-height: clamp(310px, 48vw, 560px);
  --padding-top: clamp(58px, 9vw, 125px);
  --padding-bottom: clamp(34px, 7vw, 82px);
  --padding-left: var(--polat-inset);
  --padding-right: var(--polat-inset);
  --justify-content: center;
  position: relative;
  isolation: isolate;
  background-color: #254453;
  background-size: cover;
  background-position: center;
}

.polat-photo-page #content main :is([data-elementor-type="wp-page"], [data-elementor-type="wp-post"]) > .e-parent:first-child::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(13, 33, 47, .75), rgba(13, 33, 47, .27) 80%);
}

.polat-photo-page #content main :is([data-elementor-type="wp-page"], [data-elementor-type="wp-post"]) > .e-parent:first-child :is(h1, .elementor-icon-list-text) {
  color: #fff;
  text-shadow: 0 2px 12px rgba(8, 25, 40, .64);
}

.polat-photo-page #content main :is([data-elementor-type="wp-page"], [data-elementor-type="wp-post"]) > .e-parent:first-child h1 {
  font-size: clamp(2.35rem, 6vw, 5.6rem);
  line-height: 1.04;
  text-wrap: balance;
}

.polat-photo-page #content main :is([data-elementor-type="wp-page"], [data-elementor-type="wp-post"]) > .e-parent:first-child .elementor-widget-heading.elementor-invisible {
  visibility: visible;
}

.polat-photo-page #content main :is([data-elementor-type="wp-page"], [data-elementor-type="wp-post"]) > .e-parent:not(:first-child) {
  --padding-top: var(--polat-section-space);
  --padding-bottom: var(--polat-section-space);
  --padding-left: var(--polat-inset);
  --padding-right: var(--polat-inset);
  scroll-margin-top: 84px;
}

.polat-photo-page main .elementor-widget-text-editor {
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.polat-photo-page main .elementor-widget-text-editor p {
  margin-block: 0 1em;
}

.polat-photo-page main .elementor-widget-heading :is(h2, h3, h4) {
  text-wrap: balance;
  line-height: 1.19;
}

.polat-photo-page main img {
  max-inline-size: 100%;
}

.polat-photo-page main :is(.elementor-widget-image, .elementor-widget-image-carousel, .elementor-widget-video) img,
.polat-photo-page main .elementor-widget-google_maps iframe {
  border-radius: 12px;
}

.polat-photo-page main .elementor-widget-button a.elementor-button {
  min-height: 44px;
}

.polat-photo-page main :is(a, input, select, textarea, button):focus-visible,
.polat-reading a:focus-visible {
  outline: 2px solid #b27530;
  outline-offset: 3px;
}

body.page-id-203 .elementor-203 > .elementor-element-247403d1 {
  --padding-bottom: 0px;
}

body.page-id-203 .elementor-203 > .elementor-element-1ca4aa3 {
  --padding-top: clamp(20px, 3vw, 42px);
  background: #faf7f0;
}

.polat-room-directory,
.polat-journal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}

.polat-room-card,
.polat-journal-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e5ddd0;
  border-radius: 14px;
  background: #fff;
}

.polat-room-card a {
  display: block;
  height: 100%;
  color: var(--polat-reading-ink);
  text-decoration: none;
}

.polat-room-card a:focus-visible {
  outline-offset: -3px;
}

.polat-room-card img,
.polat-journal-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.polat-room-card-label,
.polat-journal-card > div {
  padding: clamp(14px, 2.2vw, 24px);
}

.polat-room-card h2,
.polat-journal-card h2 {
  margin: 0 0 10px;
  color: var(--hotel-night);
  font-family: var(--uicore-primary-font-family, Belleza), Georgia, serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}

.polat-room-card-label > span {
  display: flex;
  justify-content: space-between;
  font-size: .87rem;
  font-weight: 500;
}

.polat-room-card a:hover h2 {
  text-decoration: underline;
  text-underline-offset: .16em;
}

.polat-photo-page .elementor-widget-uicore-contact-form {
  min-width: 0;
}

.polat-photo-page .elementor-widget-uicore-contact-form form :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), textarea, select) {
  max-width: 100%;
  min-height: 45px;
  background: #fff;
  color: #193749;
  border: 1px solid #a0abb0;
  border-radius: 7px;
}

.polat-photo-page .elementor-widget-uicore-contact-form form textarea {
  min-height: 115px;
  resize: vertical;
}

.polat-photo-page .elementor-widget-uicore-contact-form form button {
  min-height: 44px;
}

.polat-reading,
body.privacy-policy #content main > .uicore-content-wrapper {
  width: min(100% - 2 * var(--polat-inset), 1140px);
  margin-inline: auto;
  padding-block: var(--polat-section-space);
  color: var(--polat-reading-ink);
}

.polat-article,
body.privacy-policy #content main > .uicore-content-wrapper {
  max-width: 820px;
}

.polat-reading-intro {
  border-bottom: 1px solid #e7ddd0;
  margin-bottom: clamp(22px, 4vw, 38px);
  padding-bottom: clamp(20px, 4vw, 32px);
}

.polat-reading-intro h1 {
  margin-block: 12px;
  color: var(--hotel-night);
  font: 400 clamp(2.05rem, 5vw, 4rem)/1.11 var(--uicore-primary-font-family, Belleza), Georgia, serif;
  text-wrap: balance;
}

.polat-reading-intro p {
  margin: 0;
}

.polat-reading-link {
  color: #805320;
  font-size: .9rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: .16em;
}

.polat-article-cover {
  margin: 0 0 28px;
}

.polat-article-cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 475px;
  object-fit: cover;
  border-radius: 12px;
}

.polat-article-text,
body.privacy-policy #content main .entry-content {
  line-height: 1.78;
  overflow-wrap: anywhere;
}

.polat-article-text :is(h2, h3),
body.privacy-policy #content main .entry-content :is(h2, h3) {
  margin-block: 1.45em .45em;
  color: var(--hotel-night);
  line-height: 1.22;
}

.polat-article-text img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 850px) {
  .polat-room-directory,
  .polat-journal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  .polat-room-directory,
  .polat-journal-grid { grid-template-columns: minmax(0, 1fr); }
  .polat-photo-page #content main :is([data-elementor-type="wp-page"], [data-elementor-type="wp-post"]) > .e-parent:first-child {
    --min-height: 290px;
  }
}
