.gallerywed-page {
  background:
    linear-gradient(
      180deg,
      #f5f2ee 0%,
      #f8f4ef 38%,
      #f1ebe4 100%
    );
}

.gallerywed-hero {
  padding: 9rem 0 3rem;
}

.gallerywed-hero__container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  position: relative;
}

.gallerywed-hero__content {
  max-width: 46rem;
}

.gallerywed-backlink {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.78rem 1.05rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(17, 17, 17, 0.08);
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 0.8rem 1.6rem rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  width: fit-content;
  z-index: 3;
}

.gallerywed-backlink:hover {
  transform: translateY(-2px);
  background: #ffffff;
}

.gallerywed-hero__eyebrow {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-weight: 700;
  color: var(--color-primary-variant);
  margin-bottom: 0.9rem;
}

.gallerywed-hero__title {
  font-size: clamp(2.35rem, 5vw, 4.2rem);
  line-height: 1.04;
  color: var(--color-primary);
  margin: 0 0 0.85rem;
}

.gallerywed-hero__text {
  max-width: 38rem;
  font-size: 1.03rem;
  line-height: 1.85;
  color: #4d4d4d;
}

.gallerywed-hero__brand {
  width: min(18rem, 30vw);
  justify-self: end;
}

.gallerywed-hero__brand img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.gallerywed-albums {
  padding: 0 0 4rem;
}

.gallerywed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.album-card {
  position: relative;
}

.album-card__link {
  position: relative;
  display: block;
  min-height: 30rem;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.10);
  transform: translateY(0);
  transition: transform 320ms ease, box-shadow 320ms ease;
  background: #ddd;
}

.album-card__link:hover {
  transform: translateY(-6px);
  box-shadow: 0 1.9rem 3.4rem rgba(0, 0, 0, 0.15);
}

.album-card__media,
.album-card__media img,
.album-card__overlay {
  position: absolute;
  inset: 0;
}

.album-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.album-card__link:hover .album-card__media img {
  transform: scale(1.04);
}

.album-card__overlay {
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.08) 0%,
      rgba(0, 0, 0, 0.16) 36%,
      rgba(0, 0, 0, 0.78) 100%
    ),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.18) 0%,
      rgba(0, 0, 0, 0.04) 45%,
      rgba(0, 0, 0, 0.10) 100%
    );
}

.album-card__content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 1.4rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}

.album-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.album-card__eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.86);
}

.album-card__count {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  backdrop-filter: blur(8px);
}

.album-card__title {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 0.9rem;
  text-shadow: 0 0.45rem 1rem rgba(0, 0, 0, 0.22);
}

.album-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 8.5rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.94);
  color: #161616;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 0.8rem 1.6rem rgba(0, 0, 0, 0.16);
  transition: var(--transition);
}

.album-card__link:hover .album-card__cta {
  transform: translateY(-2px);
  background: #ffffff;
}

.concealed {
  display: none;
}

.gallerywed-explore {
  padding: 0 0 3rem;
}

.gallerywed-explore__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.gallerywed-explore__block {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 1.4rem;
  padding: 1.5rem 1.5rem 1.55rem;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(8px);
}

.gallerywed-explore__eyebrow {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--color-primary-variant);
  margin-bottom: 0.6rem;
}

.gallerywed-explore__title {
  font-size: 1.45rem;
  line-height: 1.15;
  color: var(--color-primary);
  margin: 0 0 0.55rem;
}

.gallerywed-explore__text {
  font-size: 0.96rem;
  line-height: 1.8;
  color: #585858;
  margin-bottom: 1rem;
}

.gallerywed-explore__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
  padding: 0.82rem 1.05rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: var(--transition);
}

.gallerywed-explore__link:hover {
  background: var(--color-primary-variant);
  transform: translateY(-2px);
}

.gallerywed-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.gallerywed-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8rem;
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.06);
  color: var(--color-primary);
  border: 1px solid rgba(17, 17, 17, 0.08);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: var(--transition);
}

.gallerywed-socials a:hover {
  background: var(--color-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.gallerywed-footercta {
  padding: 0 0 4.5rem;
}

.gallerywed-footercta__container {
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.gallerywed-footercta__text {
  font-size: 1rem;
  color: #4d4d4d;
}

.gallerywed-footercta__actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.gallerywed-footercta__actions .btn--secondary {
  color: var(--color-primary);
  border-color: rgba(17, 17, 17, 0.16);
}

.gallerywed-footercta__actions .btn--secondary:hover {
  color: var(--color-white);
  border-color: transparent;
}

@media screen and (max-width: 1100px) {
  .gallerywed-hero {
    padding: 8rem 0 2.7rem;
  }

  .gallerywed-hero__container {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 3.8rem;
  }

  .gallerywed-hero__brand {
    width: min(14rem, 42vw);
    justify-self: start;
  }

  .gallerywed-backlink {
    right: 0;
  }

  .gallerywed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .album-card__link {
    min-height: 28rem;
  }

  .gallerywed-explore__container,
  .gallerywed-footercta__container {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .gallerywed-footercta__actions {
    justify-content: flex-start;
  }
}

@media screen and (max-width: 768px) {
  .gallerywed-hero {
    padding: 7.4rem 0 2.5rem;
  }

  .gallerywed-hero__container {
    padding-top: 3.5rem;
  }

  .gallerywed-backlink {
    top: 0;
    right: 0;
    padding: 0.72rem 0.95rem;
    font-size: 0.72rem;
  }

  .gallerywed-hero__eyebrow {
    font-size: 0.76rem;
    letter-spacing: 0.22em;
  }

  .gallerywed-hero__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .gallerywed-hero__text {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .gallerywed-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .album-card__link {
    min-height: 25rem;
    border-radius: 1.25rem;
  }

  .album-card__content {
    padding: 1.2rem 1.15rem 1.25rem;
  }

  .album-card__meta {
    margin-bottom: 0.55rem;
  }

  .album-card__count {
    font-size: 0.68rem;
  }

  .album-card__cta {
    min-width: 8rem;
    padding: 0.7rem 0.95rem;
    font-size: 0.72rem;
  }

  .gallerywed-explore {
    padding-bottom: 2.4rem;
  }

  .gallerywed-explore__container {
    grid-template-columns: 1fr;
  }

  .gallerywed-footercta {
    padding-bottom: 4rem;
  }
}

@media screen and (max-width: 520px) {
  .album-card__link {
    min-height: 22rem;
  }

  .album-card__title {
    font-size: 1.45rem;
  }

  .gallerywed-socials {
    gap: 0.6rem;
  }

  .gallerywed-socials a,
  .gallerywed-footercta__actions .btn {
    width: 100%;
  }

  .gallerywed-footercta__actions {
    width: 100%;
  }

  .gallerywed-backlink {
    position: static;
    margin-bottom: 1rem;
  }

  .gallerywed-hero__container {
    padding-top: 0;
  }
}