:root {
  --hp-accent: #d97706;
  --hp-accent-dark: #b45309;
  --hp-dark: #111827;
  --hp-text: #374151;
  --hp-muted: #6b7280;
  --hp-border: #e5e7eb;
  --hp-soft: #fff7ed;
  --hp-soft-2: #f9fafb;
  --hp-white: #ffffff;
  --hp-radius: 22px;
  --hp-shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--hp-text);
  background: var(--hp-white);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a:hover,
a:focus {
  color: var(--hp-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow-container {
  width: min(860px, calc(100% - 40px));
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link:focus {
  clip: auto !important;
  clip-path: none;
  left: 20px;
  top: 20px;
  z-index: 99999;
  width: auto;
  height: auto;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--hp-white);
  background: var(--hp-dark);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.header-ad-wrap {
  padding-top: 10px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 82px;
}

.site-branding {
  min-width: 180px;
}

.site-title {
  color: var(--hp-dark);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.site-description {
  margin: 2px 0 0;
  color: var(--hp-muted);
  font-size: 13px;
  line-height: 1.4;
}

.custom-logo-link img {
  max-height: 58px;
  width: auto;
}

.main-navigation .menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation .menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--hp-text);
  font-size: 14px;
  font-weight: 700;
}

.main-navigation .menu a:hover,
.main-navigation .menu .current-menu-item > a,
.main-navigation .menu .current_page_item > a {
  color: var(--hp-dark);
  background: var(--hp-soft);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hp-border);
  border-radius: 14px;
  background: var(--hp-white);
  cursor: pointer;
}

.menu-toggle span:not(.screen-reader-text) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--hp-dark);
}

.hero-section {
  overflow: hidden;
  padding: 80px 0 70px;
  background:
    radial-gradient(circle at 80% 20%, rgba(217, 119, 6, 0.16), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #fff7ed 48%, #f8fafc 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hp-accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.hero-copy h1,
.page-header h1,
.single-title,
.section-heading h2 {
  margin: 14px 0 0;
  color: var(--hp-dark);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.hero-copy h1 {
  max-width: 820px;
  font-size: clamp(42px, 7vw, 76px);
}

.hero-copy p {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--hp-text);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button,
.search-submit,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.button-primary,
.search-submit,
.wp-block-button__link {
  color: var(--hp-white);
  background: var(--hp-accent);
  box-shadow: 0 14px 26px rgba(217, 119, 6, 0.25);
}

.button-primary:hover,
.search-submit:hover,
.wp-block-button__link:hover {
  color: var(--hp-white);
  background: var(--hp-accent-dark);
  transform: translateY(-1px);
}

.button-soft {
  color: var(--hp-dark);
  background: var(--hp-white);
  border: 1px solid var(--hp-border);
}

.hero-card {
  min-height: 430px;
  padding: 18px;
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: 34px;
  background:
    linear-gradient(150deg, rgba(17, 24, 39, 0.06), transparent),
    url("data:image/svg+xml,%3Csvg width='760' height='560' viewBox='0 0 760 560' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='760' height='560' rx='38' fill='%23FFF7ED'/%3E%3Cpath d='M124 400V231L378 72L636 231V400C636 424 616 444 592 444H168C144 444 124 424 124 400Z' fill='%23ffffff' stroke='%23111827' stroke-width='16'/%3E%3Cpath d='M248 444V308C248 292 261 279 277 279H355C371 279 384 292 384 308V444' fill='%23FED7AA' stroke='%23111827' stroke-width='14'/%3E%3Cpath d='M439 302H548V376H439V302Z' fill='%23DBEAFE' stroke='%23111827' stroke-width='14'/%3E%3Cpath d='M96 236L378 54L664 236' stroke='%23D97706' stroke-width='24' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='592' cy='112' r='42' fill='%23FDBA74'/%3E%3Cpath d='M510 112H640' stroke='%23D97706' stroke-width='12' stroke-linecap='round'/%3E%3Cpath d='M575 47V177' stroke='%23D97706' stroke-width='12' stroke-linecap='round'/%3E%3C/svg%3E") center/cover no-repeat;
  box-shadow: var(--hp-shadow);
}

.hero-card-inner {
  width: min(320px, 100%);
  margin-top: auto;
  padding: 24px;
  border-radius: 24px;
  color: var(--hp-white);
  background: rgba(17, 24, 39, 0.92);
  box-shadow: 0 20px 60px rgba(17, 24, 39, 0.24);
}

.hero-card-inner span {
  display: block;
  color: #fbbf24;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-card-inner strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  line-height: 1.1;
}

.hero-card-inner p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.topics-section,
.content-section {
  padding: 70px 0;
}

.section-heading h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.topic-pill {
  display: inline-flex;
  align-items: center;
  padding: 11px 15px;
  border: 1px solid var(--hp-border);
  border-radius: 999px;
  color: var(--hp-dark);
  background: var(--hp-white);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.04);
}

.topic-pill:hover,
.topic-pill:focus {
  color: var(--hp-white);
  border-color: var(--hp-accent);
  background: var(--hp-accent);
  transform: translateY(-1px);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 42px;
  align-items: start;
}

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

.post-card {
  overflow: hidden;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius);
  background: var(--hp-white);
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.06);
}

.post-card-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--hp-soft);
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.post-card:hover .post-card-image img {
  transform: scale(1.04);
}

.post-card-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--hp-accent-dark);
  font-weight: 800;
}

.post-card-body {
  padding: 22px;
}

.post-card-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.post-card-cats a {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--hp-accent-dark);
  background: var(--hp-soft);
  font-size: 12px;
  font-weight: 800;
}

.post-card-title {
  margin: 0;
  color: var(--hp-dark);
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.entry-meta,
.single-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--hp-muted);
  font-size: 13px;
  font-weight: 700;
}

.post-card .entry-meta {
  margin-top: 12px;
}

.updated:not(.published) {
  display: none;
}

.meta-dot {
  color: var(--hp-border);
}

.post-card-excerpt {
  margin-top: 14px;
  color: var(--hp-muted);
}

.post-card-excerpt p {
  margin: 0;
}

.read-more-link {
  display: inline-flex;
  gap: 6px;
  margin-top: 18px;
  color: var(--hp-accent-dark);
  font-weight: 800;
}

.widget-area {
  position: sticky;
  top: 110px;
}

.widget {
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius);
  background: var(--hp-white);
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.05);
}

.widget-title {
  margin: 0 0 16px;
  color: var(--hp-dark);
  font-size: 18px;
  line-height: 1.2;
}

.widget ul,
.widget ol {
  margin: 0;
  padding-left: 18px;
}

.widget li + li {
  margin-top: 8px;
}

.starter-widget .topic-pills {
  margin-top: 0;
}

.starter-widget .topic-pill {
  width: 100%;
  justify-content: space-between;
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-form label {
  flex: 1;
}

.search-field {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--hp-border);
  border-radius: 999px;
  color: var(--hp-dark);
  background: var(--hp-white);
  font: inherit;
  outline: none;
}

.search-field:focus {
  border-color: var(--hp-accent);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

.search-submit {
  min-height: 48px;
}

.page-header,
.single-header {
  padding: 72px 0 44px;
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
}

.page-header h1,
.single-title {
  font-size: clamp(36px, 5vw, 64px);
}

.page-header p {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--hp-muted);
  font-size: 18px;
}

.single-cats {
  margin-bottom: 16px;
}

.single-meta-row {
  margin-top: 18px;
}

.single-featured-image {
  margin-top: 38px;
}

.single-featured-image img {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--hp-shadow);
}

.single-content {
  margin-top: 34px;
  color: var(--hp-text);
  font-size: 18px;
}

.single-content > *:first-child {
  margin-top: 0;
}

.single-content h2,
.single-content h3,
.single-content h4 {
  margin-top: 36px;
  color: var(--hp-dark);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.single-content h2 {
  font-size: 34px;
}

.single-content h3 {
  font-size: 26px;
}

.single-content p,
.single-content ul,
.single-content ol {
  margin-bottom: 22px;
}

.single-content a {
  color: var(--hp-accent-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.single-content blockquote {
  margin: 34px 0;
  padding: 24px 26px;
  border-left: 5px solid var(--hp-accent);
  border-radius: 0 18px 18px 0;
  color: var(--hp-dark);
  background: var(--hp-soft);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
}

.single-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  overflow: hidden;
  border-radius: 16px;
}

.single-content th,
.single-content td {
  padding: 12px 14px;
  border: 1px solid var(--hp-border);
  text-align: left;
}

.single-content th {
  color: var(--hp-dark);
  background: var(--hp-soft-2);
}

.entry-footer {
  margin: 36px 0 54px;
}

.tag-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.tag-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--hp-muted);
  background: var(--hp-soft-2);
  font-size: 13px;
  font-weight: 800;
}

.ad-slot,
.ad-placeholder {
  width: 100%;
  margin: 16px 0;
  text-align: center;
}

.ad-placeholder {
  display: grid;
  place-items: center;
  min-height: 92px;
  padding: 18px;
  border: 1px dashed rgba(217, 119, 6, 0.45);
  border-radius: 18px;
  color: var(--hp-accent-dark);
  background: var(--hp-soft);
}

.ad-placeholder span {
  display: block;
  font-weight: 800;
}

.ad-placeholder small {
  display: block;
  margin-top: 4px;
  color: var(--hp-muted);
}

.navigation.pagination,
.post-navigation {
  width: min(860px, calc(100% - 40px));
  margin: 44px auto;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.page-numbers,
.post-navigation a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border: 1px solid var(--hp-border);
  border-radius: 999px;
  color: var(--hp-dark);
  background: var(--hp-white);
  font-weight: 800;
}

.page-numbers.current,
.page-numbers:hover,
.post-navigation a:hover {
  color: var(--hp-white);
  border-color: var(--hp-accent);
  background: var(--hp-accent);
}

.no-results {
  padding: 34px;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius);
  background: var(--hp-white);
  box-shadow: var(--hp-shadow);
}

.comments-area {
  margin-top: 60px;
  margin-bottom: 70px;
}

.comments-title,
.comment-reply-title {
  color: var(--hp-dark);
  letter-spacing: -0.03em;
}

.comment-list {
  padding-left: 22px;
}

.comment-body {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--hp-border);
  border-radius: 18px;
}

.comment-form input:not([type="submit"]),
.comment-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--hp-border);
  border-radius: 14px;
  font: inherit;
}

.form-submit input {
  display: inline-flex;
  padding: 13px 18px;
  border: 0;
  border-radius: 999px;
  color: var(--hp-white);
  background: var(--hp-accent);
  font-weight: 800;
  cursor: pointer;
}

.site-footer {
  margin-top: 40px;
  padding: 56px 0 28px;
  color: rgba(255, 255, 255, 0.76);
  background: var(--hp-dark);
}

.site-footer a:hover {
  color: var(--hp-white);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 20px;
}

.footer-inner strong {
  color: var(--hp-white);
  font-size: 22px;
}

.footer-inner p {
  max-width: 480px;
  margin: 8px 0 0;
}

.footer-navigation .menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

@media (max-width: 1000px) {
  .menu-toggle {
    display: inline-block;
  }

  .main-navigation {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    display: none;
    padding: 14px;
    border: 1px solid var(--hp-border);
    border-radius: 20px;
    background: var(--hp-white);
    box-shadow: var(--hp-shadow);
  }

  .main-navigation.is-open {
    display: block;
  }

  .main-navigation .menu {
    align-items: stretch;
    flex-direction: column;
  }

  .main-navigation .menu a {
    border-radius: 12px;
  }

  .hero-grid,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .widget-area {
    position: static;
  }
}

@media (max-width: 720px) {
  .container,
  .narrow-container,
  .navigation.pagination,
  .post-navigation {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 72px;
  }

  .hero-section,
  .topics-section,
  .content-section {
    padding: 46px 0;
  }

  .hero-grid {
    gap: 30px;
  }

  .hero-card {
    min-height: 330px;
    border-radius: 24px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .search-form {
    flex-direction: column;
  }

  .search-submit {
    width: 100%;
  }

  .page-header,
  .single-header {
    padding: 46px 0 32px;
  }

  .single-content {
    font-size: 16px;
  }

  .single-content h2 {
    font-size: 28px;
  }

  .footer-inner,
  .site-info {
    flex-direction: column;
  }
}

/* Version 2 navigation, gallery slider, gallery pages, and footer refinements */
.main-navigation .menu > .menu-item {
  position: relative;
}

.main-navigation .menu > .menu-item-has-children > a::after {
  content: "⌄";
  display: inline-block;
  margin-left: 6px;
  font-size: 13px;
  line-height: 1;
  transform: translateY(-1px);
}

.main-navigation .sub-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 220;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: 440px;
  max-width: min(440px, calc(100vw - 40px));
  margin: 0;
  padding: 12px;
  list-style: none;
  border: 1px solid var(--hp-border);
  border-radius: 20px;
  background: var(--hp-white);
  box-shadow: var(--hp-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.main-navigation .menu-item-has-children:hover > .sub-menu,
.main-navigation .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.main-navigation .sub-menu a {
  padding: 11px 12px;
  border-radius: 14px;
  color: var(--hp-text);
  font-size: 13px;
  line-height: 1.3;
}

.main-navigation .sub-menu a:hover,
.main-navigation .sub-menu a:focus {
  color: var(--hp-dark);
  background: var(--hp-soft);
}

.gallery-slider-section {
  width: 100%;
  background: var(--hp-dark);
}

.gallery-slider {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  background: var(--hp-dark);
}

.gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.gallery-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
}

.gallery-slide-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  color: var(--hp-white);
}

.gallery-slide-link:hover,
.gallery-slide-link:focus {
  color: var(--hp-white);
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.gallery-slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.78) 0%, rgba(17, 24, 39, 0.42) 42%, rgba(17, 24, 39, 0.12) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.38), transparent 50%);
}

.gallery-slide-content {
  position: absolute;
  left: 50%;
  bottom: 54px;
  display: block;
  width: min(1180px, calc(100% - 40px));
  transform: translateX(-50%);
}

.gallery-slide-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(17, 24, 39, 0.74);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-slide-content strong {
  display: block;
  max-width: 760px;
  margin-top: 16px;
  color: var(--hp-white);
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.gallery-slide-content small {
  display: block;
  max-width: 600px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.55;
}

.gallery-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 5;
  display: flex;
  gap: 8px;
  width: min(1180px, calc(100% - 40px));
  transform: translateX(-50%);
}

.gallery-slider-dot {
  width: 34px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.gallery-slider-dot.is-active {
  width: 58px;
  background: var(--hp-accent);
}

.gallery-page-section {
  padding: 64px 0 78px;
}

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

.gallery-card {
  overflow: hidden;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius);
  background: var(--hp-white);
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.06);
}

.gallery-card-image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--hp-soft);
}

.gallery-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-card:hover .gallery-card-image img {
  transform: scale(1.04);
}

.gallery-card-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--hp-accent-dark);
  font-weight: 800;
}

.gallery-card-body {
  padding: 20px;
}

.gallery-card-body h2 {
  margin: 0;
  color: var(--hp-dark);
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.gallery-card-body p {
  margin: 10px 0 0;
  color: var(--hp-muted);
}

.gallery-single-image {
  margin-top: 38px;
}

.gallery-single-image img {
  width: 100%;
  max-height: 760px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--hp-shadow);
}

.gallery-back-link {
  margin: 34px 0 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: start;
}

.footer-links-block h3 {
  margin: 0 0 14px;
  color: var(--hp-white);
  font-size: 16px;
  letter-spacing: -0.02em;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.footer-socials a {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--hp-white);
  background: rgba(255, 255, 255, 0.06);
}

.footer-socials a:hover,
.footer-socials a:focus {
  color: var(--hp-dark);
  background: var(--hp-accent);
  border-color: var(--hp-accent);
  transform: translateY(-1px);
}

.footer-socials svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.footer-navigation .menu a {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.footer-navigation .menu a:hover,
.footer-navigation .menu a:focus,
.developer-credit:hover,
.developer-credit:focus {
  color: var(--hp-white);
}

.developer-credit {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

@media (max-width: 1000px) {
  .main-navigation .sub-menu {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: none;
    margin: 4px 0 0;
    padding: 8px;
    border-radius: 14px;
    background: var(--hp-soft-2);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .main-navigation .menu-item-has-children:hover > .sub-menu,
  .main-navigation .menu-item-has-children:focus-within > .sub-menu {
    transform: none;
  }

  .gallery-slider {
    height: 430px;
  }

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

@media (max-width: 720px) {
  .gallery-slider {
    height: 350px;
  }

  .gallery-slide-content {
    bottom: 48px;
    width: min(100% - 28px, 1180px);
  }

  .gallery-slide-content small {
    display: none;
  }

  .gallery-slider-dots {
    width: min(100% - 28px, 1180px);
  }

  .gallery-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
