/* =========================================================
   Mizunara Studio Design System
   Instagram Wall Component
   css/components/instagram-wall.css
   Version 1.0
========================================================= */

/* =========================================================
   WRAPPER DEL BUILDER
========================================================= */

.ms-component[data-component="instagramWall"] {
  display: block;

  width: 100%;
  max-width: 100%;
  min-height: 0;

  margin: 0;
  padding: 0;

  overflow-x: hidden;
  overflow-x: clip;
  overflow-y: visible;

  background: transparent;

  filter: none !important;
  -webkit-filter: none !important;

  opacity: 1 !important;
  visibility: visible !important;
}

.ms-component[data-component="instagramWall"][hidden] {
  display: none !important;
}

.ms-component[data-component="instagramWall"] > .ms-instagram-wall {
  width: 100%;
  max-width: 100%;

  filter: none !important;
  -webkit-filter: none !important;
}

/* =========================================================
   VARIABLES
========================================================= */

.ms-component[data-component="instagramWall"] {
  --instagram-primary: var(--ms-color-primary, #c8a46b);

  --instagram-primary-dark: var(--ms-color-primary-dark, #8f6d35);

  --instagram-text: var(--ms-color-text, #342b25);

  --instagram-muted: var(--ms-color-muted, rgba(52, 43, 37, 0.68));

  --instagram-soft-text: rgba(52, 43, 37, 0.52);

  --instagram-surface: rgba(255, 255, 255, 0.54);

  --instagram-surface-strong: rgba(255, 255, 255, 0.8);

  --instagram-border: rgba(255, 255, 255, 0.6);

  --instagram-gold-border: rgba(200, 164, 107, 0.28);

  --instagram-purple: #925aa9;

  --instagram-pink: #c96683;

  --instagram-orange: #d99a5e;

  --instagram-success: #55745d;

  --instagram-error: #a34b4b;

  --instagram-info: #6b6f86;

  --instagram-radius: var(--ms-radius-xl, 30px);

  --instagram-card-radius: var(--ms-radius-lg, 21px);

  --instagram-shadow:
    0 32px 90px rgba(48, 36, 28, 0.13), 0 12px 34px rgba(48, 36, 28, 0.06);

  --instagram-item-shadow: 0 18px 48px rgba(48, 36, 28, 0.1);

  --instagram-transition: 280ms ease;
}

/* =========================================================
   SECCIÓN
========================================================= */

.ms-component[data-component="instagramWall"] .ms-instagram-wall {
  position: relative;
  isolation: isolate;

  width: 100%;
  max-width: 100%;

  padding: var(--ms-section-padding, clamp(5rem, 10vw, 8rem)) 0;

  overflow-x: hidden;
  overflow-x: clip;
  overflow-y: visible;

  background:
    radial-gradient(
      circle at 6% 16%,
      rgba(200, 164, 107, 0.13),
      transparent 31%
    ),
    radial-gradient(
      circle at 94% 38%,
      rgba(201, 102, 131, 0.11),
      transparent 32%
    ),
    radial-gradient(
      circle at 52% 98%,
      rgba(146, 90, 169, 0.09),
      transparent 30%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02),
      rgba(255, 255, 255, 0.08)
    );

  filter: none !important;
  -webkit-filter: none !important;
}

/* =========================================================
   ORBES DECORATIVOS
========================================================= */

.ms-component[data-component="instagramWall"] .ms-instagram-wall-orb {
  position: absolute;
  z-index: -2;

  border-radius: 50%;

  filter: blur(16px);

  pointer-events: none;
}

.ms-component[data-component="instagramWall"] .ms-instagram-wall-orb--left {
  top: 4%;
  left: -190px;

  width: 430px;
  height: 430px;

  background: radial-gradient(
    circle,
    rgba(200, 164, 107, 0.18),
    transparent 70%
  );
}

.ms-component[data-component="instagramWall"] .ms-instagram-wall-orb--right {
  right: -230px;
  bottom: 4%;

  width: 510px;
  height: 510px;

  background: radial-gradient(
    circle,
    rgba(201, 102, 131, 0.15),
    transparent 70%
  );
}

/* =========================================================
   DECORACIÓN SUPERIOR
========================================================= */

.ms-component[data-component="instagramWall"] .ms-instagram-wall-decoration {
  position: absolute;
  top: 4.5rem;
  left: 50%;
  z-index: -1;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 0.65rem;

  transform: translateX(-50%);

  pointer-events: none;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-decoration
  span {
  display: block;

  width: 4px;
  height: 4px;

  border-radius: 50%;

  background: var(--instagram-primary);

  opacity: 0.45;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-decoration
  span:nth-child(2) {
  width: 42px;
  height: 1px;

  border-radius: 999px;

  background: linear-gradient(
    90deg,
    transparent,
    var(--instagram-primary),
    transparent
  );
}

/* =========================================================
   CONTENEDOR
========================================================= */

.ms-component[data-component="instagramWall"] .ms-instagram-wall .ms-container {
  position: relative;
  z-index: 1;

  width: min(92%, 1160px);
  max-width: 100%;

  margin-inline: auto;
}

/* =========================================================
   ENCABEZADO
========================================================= */

.ms-component[data-component="instagramWall"] .ms-instagram-wall-header {
  width: min(100%, 790px);

  margin: 0 auto clamp(2.8rem, 7vw, 4.8rem);

  text-align: center;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-header
  .ms-section-kicker {
  display: inline-block;

  margin-bottom: 1rem;

  color: var(--instagram-primary-dark);

  font-size: 0.72rem;
  font-weight: 700;

  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-header
  .ms-section-kicker[hidden] {
  display: none !important;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-header
  .ms-section-title {
  margin: 0 0 1.25rem;

  color: var(--instagram-text);

  font-family: var(--ms-font-title, "Playfair Display", serif);

  font-size: clamp(2.3rem, 6vw, 4rem);

  font-weight: 500;
  line-height: 1.08;

  text-wrap: balance;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-header
  .ms-section-description {
  max-width: 710px;

  margin-inline: auto;

  color: var(--instagram-muted);

  font-size: clamp(0.95rem, 1.7vw, 1.06rem);

  line-height: 1.85;

  text-wrap: balance;
}

/* =========================================================
   TARJETA DE PERFIL
========================================================= */

.ms-component[data-component="instagramWall"] .ms-instagram-wall-profile {
  position: relative;

  display: grid;

  grid-template-columns:
    auto
    minmax(0, 1fr)
    auto;

  align-items: center;

  gap: clamp(1.1rem, 4vw, 2rem);

  width: min(100%, 980px);

  margin: 0 auto clamp(2rem, 5vw, 3rem);

  padding: clamp(1.15rem, 4vw, 1.8rem);

  overflow: hidden;

  border: 1px solid var(--instagram-border);

  border-radius: var(--instagram-radius);

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.7),
    rgba(255, 255, 255, 0.29)
  );

  box-shadow: var(--instagram-shadow);

  backdrop-filter: blur(22px) saturate(1.08);

  -webkit-backdrop-filter: blur(22px) saturate(1.08);

  opacity: 0;

  transform: translateY(28px);

  transition:
    opacity 800ms ease,
    transform 850ms var(--ms-ease-luxury, ease);
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-profile::before {
  content: "";

  position: absolute;
  top: -140px;
  right: -90px;

  width: 290px;
  height: 290px;

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(201, 102, 131, 0.14),
    transparent 70%
  );

  pointer-events: none;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-profile.is-visible,
.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-visible
  .ms-instagram-wall-profile {
  opacity: 1;

  transform: translateY(0);
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-profile[hidden] {
  display: none !important;
}

/* =========================================================
   AVATAR
========================================================= */

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-profile-avatar {
  position: relative;
  z-index: 1;

  display: grid;
  place-items: center;

  width: clamp(86px, 11vw, 116px);

  height: clamp(86px, 11vw, 116px);

  overflow: hidden;

  border: 1px solid rgba(200, 164, 107, 0.3);

  border-radius: 50%;

  color: var(--instagram-primary-dark);

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.92),
    rgba(200, 164, 107, 0.12)
  );

  box-shadow:
    0 18px 42px rgba(48, 36, 28, 0.11),
    inset 0 0 0 7px rgba(255, 255, 255, 0.27);
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-profile-avatar::before {
  content: "";

  position: absolute;
  inset: 0;

  padding: 3px;

  border-radius: inherit;

  background: linear-gradient(
    135deg,
    var(--instagram-orange),
    var(--instagram-pink),
    var(--instagram-purple)
  );

  opacity: 0.65;

  pointer-events: none;

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  -webkit-mask-composite: xor;

  mask-composite: exclude;
}

.ms-component[data-component="instagramWall"] .ms-instagram-wall-profile-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-profile-image[hidden] {
  display: none !important;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-profile-placeholder {
  display: grid;
  place-items: center;

  width: 100%;
  height: 100%;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-profile-placeholder[hidden] {
  display: none !important;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-profile-placeholder
  svg {
  width: 56%;
  height: 56%;
}

/* =========================================================
   CONTENIDO DEL PERFIL
========================================================= */

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-profile-content {
  position: relative;
  z-index: 1;

  min-width: 0;
}

.ms-component[data-component="instagramWall"] .ms-instagram-wall-profile-label {
  display: inline-block;

  margin-bottom: 0.45rem;

  color: var(--instagram-primary-dark);

  font-size: 0.64rem;
  font-weight: 750;

  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-profile-label[hidden] {
  display: none !important;
}

.ms-component[data-component="instagramWall"] .ms-instagram-wall-profile-title {
  margin: 0 0 0.65rem;

  color: var(--instagram-text);

  font-family: var(--ms-font-title, "Playfair Display", serif);

  font-size: clamp(1.65rem, 4vw, 2.55rem);

  font-weight: 500;
  line-height: 1.15;

  text-wrap: balance;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-profile-title[hidden] {
  display: none !important;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-profile-description {
  max-width: 630px;

  margin: 0 0 0.9rem;

  color: var(--instagram-muted);

  font-size: clamp(0.86rem, 1.5vw, 0.96rem);

  line-height: 1.7;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-profile-description[hidden] {
  display: none !important;
}

/* =========================================================
   META DEL PERFIL
========================================================= */

.ms-component[data-component="instagramWall"] .ms-instagram-wall-profile-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 0.55rem;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-profile-meta[hidden] {
  display: none !important;
}

.ms-component[data-component="instagramWall"] .ms-instagram-wall-profile-handle,
.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-profile-hashtag {
  display: inline-flex;
  align-items: center;

  min-height: 28px;

  padding: 0.33rem 0.72rem;

  border: 1px solid rgba(200, 164, 107, 0.2);

  border-radius: 999px;

  color: var(--instagram-primary-dark);

  background: rgba(200, 164, 107, 0.07);

  font-size: 0.7rem;
  font-weight: 700;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-profile-hashtag {
  border-color: rgba(201, 102, 131, 0.19);

  color: var(--instagram-pink);

  background: rgba(201, 102, 131, 0.07);
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-profile-handle[hidden],
.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-profile-hashtag[hidden] {
  display: none !important;
}

/* =========================================================
   ACCIONES DEL PERFIL
========================================================= */

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-profile-actions {
  position: relative;
  z-index: 1;

  display: flex;
  justify-content: flex-end;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-profile-actions[hidden] {
  display: none !important;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-profile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 0.55rem;

  min-width: max-content;
}

.ms-component[data-component="instagramWall"] .ms-instagram-wall-button-icon {
  width: 19px;
  height: 19px;

  flex: 0 0 auto;
}

/* =========================================================
   INDICACIONES
========================================================= */

.ms-component[data-component="instagramWall"] .ms-instagram-wall-instructions {
  position: relative;

  display: grid;

  grid-template-columns:
    auto
    minmax(0, 1fr);

  align-items: center;

  gap: clamp(1rem, 3vw, 1.5rem);

  width: min(100%, 860px);

  margin: 0 auto clamp(2.4rem, 6vw, 4rem);

  padding: clamp(1.15rem, 4vw, 1.7rem);

  overflow: hidden;

  border: 1px solid rgba(201, 102, 131, 0.18);

  border-radius: var(--instagram-card-radius);

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.61),
    rgba(201, 102, 131, 0.07)
  );

  box-shadow: 0 18px 48px rgba(48, 36, 28, 0.08);

  opacity: 0;

  transform: translateY(22px);

  transition:
    opacity 720ms ease,
    transform 780ms var(--ms-ease-luxury, ease);
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-instructions::after {
  content: "";

  position: absolute;
  top: -70px;
  right: -70px;

  width: 180px;
  height: 180px;

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(201, 102, 131, 0.13),
    transparent 70%
  );

  pointer-events: none;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-instructions.is-visible,
.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-visible
  .ms-instagram-wall-instructions {
  opacity: 1;

  transform: translateY(0);
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-instructions[hidden] {
  display: none !important;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-instructions-icon {
  position: relative;
  z-index: 1;

  display: grid;
  place-items: center;

  width: 74px;
  height: 74px;

  border: 1px solid rgba(201, 102, 131, 0.2);

  border-radius: 50%;

  color: var(--instagram-pink);

  background: rgba(255, 255, 255, 0.57);
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-instructions-icon
  svg {
  width: 47px;
  height: 47px;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-instructions-content {
  position: relative;
  z-index: 1;

  min-width: 0;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-instructions-label {
  display: inline-block;

  margin-bottom: 0.35rem;

  color: var(--instagram-pink);

  font-size: 0.63rem;
  font-weight: 750;

  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-instructions-label[hidden] {
  display: none !important;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-instructions-title {
  margin: 0 0 0.5rem;

  color: var(--instagram-text);

  font-family: var(--ms-font-title, "Playfair Display", serif);

  font-size: clamp(1.35rem, 3vw, 1.9rem);

  font-weight: 500;
  line-height: 1.2;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-instructions-title[hidden] {
  display: none !important;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-instructions-description {
  margin: 0;

  color: var(--instagram-muted);

  font-size: 0.82rem;
  line-height: 1.72;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-instructions-description[hidden] {
  display: none !important;
}

/* =========================================================
   FILTROS
========================================================= */

.ms-component[data-component="instagramWall"] .ms-instagram-wall-filters {
  position: relative;

  width: min(100%, 1040px);
  max-width: 100%;

  margin: 0 auto clamp(2.3rem, 6vw, 3.8rem);

  overflow: hidden;

  opacity: 0;

  transform: translateY(18px);

  transition:
    opacity 700ms ease,
    transform 760ms var(--ms-ease-luxury, ease);
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-filters.is-visible,
.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-visible
  .ms-instagram-wall-filters {
  opacity: 1;

  transform: translateY(0);
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-filters[hidden] {
  display: none !important;
}

/* =========================================================
   TRACK DE FILTROS
========================================================= */

.ms-component[data-component="instagramWall"] .ms-instagram-wall-filters-track {
  display: flex;
  align-items: center;

  gap: 0.75rem;

  width: 100%;
  max-width: 100%;

  padding: 0.55rem;

  overflow-x: auto;
  overflow-y: hidden;

  border: 1px solid rgba(255, 255, 255, 0.58);

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.43);

  box-shadow: 0 14px 38px rgba(48, 36, 28, 0.07);

  backdrop-filter: blur(20px);

  -webkit-backdrop-filter: blur(20px);

  scrollbar-width: none;

  scroll-behavior: smooth;

  overscroll-behavior-x: contain;
  touch-action: pan-x;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-filters-track::-webkit-scrollbar {
  display: none;
}

/* =========================================================
   BOTÓN DE FILTRO
========================================================= */

.ms-component[data-component="instagramWall"] .ms-instagram-wall-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 0.55rem;

  min-width: max-content;
  min-height: 44px;

  padding: 0.72rem 1.05rem;

  border: 1px solid transparent;

  border-radius: 999px;

  color: var(--instagram-muted);

  background: transparent;

  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;

  white-space: nowrap;

  cursor: pointer;

  transition:
    color var(--instagram-transition),
    background var(--instagram-transition),
    border-color var(--instagram-transition),
    box-shadow var(--instagram-transition),
    transform var(--instagram-transition);
}

.ms-component[data-component="instagramWall"] .ms-instagram-wall-filter:hover {
  color: var(--instagram-primary-dark);

  background: rgba(200, 164, 107, 0.08);
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-filter.is-active,
.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-filter[aria-selected="true"] {
  border-color: rgba(200, 164, 107, 0.28);

  color: #fff;

  background: linear-gradient(
    135deg,
    var(--instagram-primary),
    var(--instagram-primary-dark)
  );

  box-shadow: 0 12px 26px rgba(141, 107, 53, 0.23);
}

.ms-component[data-component="instagramWall"] .ms-instagram-wall-filter:active {
  transform: scale(0.97);
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-filter:focus-visible {
  outline: 2px solid var(--instagram-primary-dark);

  outline-offset: 3px;
}

.ms-component[data-component="instagramWall"] .ms-instagram-wall-filter-icon {
  display: inline-grid;
  place-items: center;

  width: 17px;
  height: 17px;

  flex: 0 0 auto;

  font-size: 0.78rem;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-filter-icon[hidden] {
  display: none !important;
}

.ms-component[data-component="instagramWall"] .ms-instagram-wall-filter-count {
  display: inline-grid;
  place-items: center;

  min-width: 22px;
  height: 22px;

  padding: 0 0.35rem;

  border-radius: 999px;

  color: var(--instagram-primary-dark);

  background: rgba(255, 255, 255, 0.66);

  font-size: 0.65rem;
  font-weight: 800;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-filter.is-active
  .ms-instagram-wall-filter-count,
.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-filter[aria-selected="true"]
  .ms-instagram-wall-filter-count {
  color: #fff;

  background: rgba(255, 255, 255, 0.2);
}

/* =========================================================
   CONTENIDO Y GRID
========================================================= */

.ms-component[data-component="instagramWall"] .ms-instagram-wall-content {
  width: min(100%, 1080px);
  max-width: 100%;

  margin-inline: auto;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-content[hidden] {
  display: none !important;
}

.ms-component[data-component="instagramWall"] .ms-instagram-wall-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: clamp(1rem, 2.5vw, 1.45rem);

  width: 100%;
  max-width: 100%;
}

/* =========================================================
   PUBLICACIÓN
========================================================= */

.ms-component[data-component="instagramWall"] .ms-instagram-wall-post {
  position: relative;

  min-width: 0;
  max-width: 100%;

  overflow: hidden;

  border: 1px solid var(--instagram-border);

  border-radius: var(--instagram-card-radius);

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.7),
    rgba(255, 255, 255, 0.28)
  );

  box-shadow: var(--instagram-item-shadow);

  backdrop-filter: blur(20px) saturate(1.08);

  -webkit-backdrop-filter: blur(20px) saturate(1.08);

  opacity: 0;

  transform: translateY(22px);

  transition:
    opacity 620ms ease,
    transform 680ms var(--ms-ease-luxury, ease),
    border-color var(--instagram-transition),
    box-shadow var(--instagram-transition);

  transition-delay: calc(var(--instagram-wall-post-index, 0) * 70ms);
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-post.is-visible,
.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-visible
  .ms-instagram-wall-post {
  opacity: 1;

  transform: translateY(0);
}

.ms-component[data-component="instagramWall"] .ms-instagram-wall-post:hover {
  border-color: rgba(200, 164, 107, 0.42);

  box-shadow: 0 26px 62px rgba(48, 36, 28, 0.14);

  transform: translateY(-5px);
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-post.is-featured {
  grid-column: span 2;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-post.is-featured
  .ms-instagram-wall-post-media {
  aspect-ratio: 16 / 10;
}

/* =========================================================
   BOTÓN DE PUBLICACIÓN
========================================================= */

.ms-component[data-component="instagramWall"] .ms-instagram-wall-post-button {
  display: block;

  width: 100%;
  height: 100%;

  margin: 0;
  padding: 0;

  border: 0;

  color: inherit;

  background: transparent;

  font: inherit;

  text-align: left;

  cursor: pointer;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-post-button:focus-visible {
  outline: 2px solid var(--instagram-primary-dark);

  outline-offset: -4px;
}

/* =========================================================
   MEDIA DE PUBLICACIÓN
========================================================= */

.ms-component[data-component="instagramWall"] .ms-instagram-wall-post-media {
  position: relative;

  width: 100%;

  margin: 0;

  overflow: hidden;

  aspect-ratio: 1 / 1;

  color: var(--instagram-primary-dark);

  background:
    radial-gradient(
      circle at 50% 36%,
      rgba(255, 255, 255, 0.56),
      transparent 36%
    ),
    linear-gradient(145deg, rgba(200, 164, 107, 0.13), rgba(201, 102, 131, 0.1));
}

.ms-component[data-component="instagramWall"] .ms-instagram-wall-post-image,
.ms-component[data-component="instagramWall"] .ms-instagram-wall-post-video {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  opacity: 0;

  transform: scale(1.035);

  transition:
    opacity 450ms ease,
    transform 650ms var(--ms-ease-luxury, ease);
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-post-media.is-loaded
  .ms-instagram-wall-post-image,
.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-post-media.is-loaded
  .ms-instagram-wall-post-video {
  opacity: 1;

  transform: scale(1);
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-post:hover
  .ms-instagram-wall-post-image,
.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-post:hover
  .ms-instagram-wall-post-video {
  transform: scale(1.045);
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-post-image[hidden],
.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-post-video[hidden] {
  display: none !important;
}

/* =========================================================
   PLACEHOLDER
========================================================= */

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-post-placeholder {
  display: grid;
  place-items: center;

  width: 100%;
  height: 100%;
  min-height: 260px;

  color: var(--instagram-primary-dark);
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-post-placeholder[hidden] {
  display: none !important;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-post-placeholder
  svg {
  width: clamp(72px, 9vw, 100px);

  height: clamp(72px, 9vw, 100px);

  opacity: 0.7;
}

/* =========================================================
   OVERLAY
========================================================= */

.ms-component[data-component="instagramWall"] .ms-instagram-wall-post-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    180deg,
    rgba(18, 13, 11, 0.02),
    rgba(18, 13, 11, 0.42)
  );

  opacity: 0.32;

  transition: opacity var(--instagram-transition);

  pointer-events: none;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-post:hover
  .ms-instagram-wall-post-overlay {
  opacity: 0.56;
}

/* =========================================================
   TIPO Y DESTACADO
========================================================= */

.ms-component[data-component="instagramWall"] .ms-instagram-wall-post-type,
.ms-component[data-component="instagramWall"] .ms-instagram-wall-post-featured {
  position: absolute;
  z-index: 2;
  top: 0.85rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 28px;

  padding: 0.34rem 0.68rem;

  border: 1px solid rgba(255, 255, 255, 0.36);

  border-radius: 999px;

  color: #fff;

  background: rgba(34, 26, 22, 0.36);

  backdrop-filter: blur(12px);

  -webkit-backdrop-filter: blur(12px);

  font-size: 0.62rem;
  font-weight: 750;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ms-component[data-component="instagramWall"] .ms-instagram-wall-post-type {
  left: 0.85rem;
}

.ms-component[data-component="instagramWall"] .ms-instagram-wall-post-featured {
  right: 0.85rem;

  border-color: rgba(200, 164, 107, 0.45);

  background: linear-gradient(
    135deg,
    rgba(200, 164, 107, 0.88),
    rgba(143, 109, 53, 0.88)
  );
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-post-type[hidden],
.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-post-featured[hidden] {
  display: none !important;
}

/* =========================================================
   BOTÓN DE REPRODUCCIÓN
========================================================= */

.ms-component[data-component="instagramWall"] .ms-instagram-wall-post-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;

  display: grid;
  place-items: center;

  width: 58px;
  height: 58px;

  border: 1px solid rgba(255, 255, 255, 0.54);

  border-radius: 50%;

  color: #fff;

  background: rgba(34, 26, 22, 0.34);

  box-shadow: 0 15px 38px rgba(0, 0, 0, 0.18);

  backdrop-filter: blur(14px);

  -webkit-backdrop-filter: blur(14px);

  transform: translate(-50%, -50%);

  transition:
    transform var(--instagram-transition),
    background var(--instagram-transition);
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-post:hover
  .ms-instagram-wall-post-play {
  background: rgba(143, 109, 53, 0.76);

  transform: translate(-50%, -50%) scale(1.08);
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-post-play[hidden] {
  display: none !important;
}

.ms-component[data-component="instagramWall"] .ms-instagram-wall-post-play svg {
  width: 26px;
  height: 26px;
}

/* =========================================================
   CONTENIDO DE PUBLICACIÓN
========================================================= */

.ms-component[data-component="instagramWall"] .ms-instagram-wall-post-content {
  display: flex;
  flex-direction: column;

  min-width: 0;

  padding: clamp(1rem, 3vw, 1.35rem);
}

.ms-component[data-component="instagramWall"] .ms-instagram-wall-post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 0.8rem;

  margin-bottom: 0.55rem;

  color: var(--instagram-soft-text);

  font-size: 0.65rem;
  line-height: 1.4;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-post-meta[hidden] {
  display: none !important;
}

.ms-component[data-component="instagramWall"] .ms-instagram-wall-post-author {
  color: var(--instagram-primary-dark);

  font-weight: 750;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-post-author[hidden],
.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-post-date[hidden] {
  display: none !important;
}

.ms-component[data-component="instagramWall"] .ms-instagram-wall-post-title {
  margin: 0 0 0.55rem;

  color: var(--instagram-text);

  font-family: var(--ms-font-title, "Playfair Display", serif);

  font-size: clamp(1.2rem, 2.6vw, 1.55rem);

  font-weight: 500;
  line-height: 1.22;

  text-wrap: balance;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-post-title[hidden] {
  display: none !important;
}

.ms-component[data-component="instagramWall"] .ms-instagram-wall-post-caption {
  display: -webkit-box;

  margin: 0;

  overflow: hidden;

  color: var(--instagram-muted);

  font-size: 0.78rem;
  line-height: 1.62;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-post-caption[hidden] {
  display: none !important;
}

/* =========================================================
   ESTADÍSTICAS
========================================================= */

.ms-component[data-component="instagramWall"] .ms-instagram-wall-post-stats {
  display: flex;
  align-items: center;

  gap: 0.9rem;

  margin-top: 1rem;
  padding-top: 0.85rem;

  border-top: 1px solid rgba(200, 164, 107, 0.14);
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-post-stats[hidden] {
  display: none !important;
}

.ms-component[data-component="instagramWall"] .ms-instagram-wall-post-stat {
  display: inline-flex;
  align-items: center;

  gap: 0.32rem;

  color: var(--instagram-soft-text);

  font-size: 0.7rem;
  font-weight: 650;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-post-stat[hidden] {
  display: none !important;
}

.ms-component[data-component="instagramWall"] .ms-instagram-wall-post-stat svg {
  width: 17px;
  height: 17px;
}

/* =========================================================
   MOSTRAR MÁS
========================================================= */

.ms-component[data-component="instagramWall"] .ms-instagram-wall-load-more {
  display: flex;
  justify-content: center;

  margin-top: clamp(2rem, 5vw, 3rem);
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-load-more[hidden] {
  display: none !important;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-load-more-button {
  min-width: min(100%, 240px);
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-load-more-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 0.55rem;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-load-more-loading[hidden] {
  display: none !important;
}

.ms-component[data-component="instagramWall"] .ms-instagram-wall-spinner {
  display: inline-block;

  width: 17px;
  height: 17px;

  border: 2px solid rgba(143, 109, 53, 0.2);

  border-top-color: var(--instagram-primary-dark);

  border-radius: 50%;

  animation: ms-instagram-wall-spin 800ms linear infinite;
}

@keyframes ms-instagram-wall-spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   ESTADO VACÍO
========================================================= */

.ms-component[data-component="instagramWall"] .ms-instagram-wall-empty {
  display: grid;
  justify-items: center;

  width: min(100%, 680px);

  margin-inline: auto;

  padding: clamp(2rem, 6vw, 3.5rem);

  border: 1px solid rgba(200, 164, 107, 0.24);

  border-radius: var(--instagram-radius);

  color: var(--instagram-muted);

  background: rgba(255, 255, 255, 0.39);

  box-shadow: var(--instagram-item-shadow);

  text-align: center;
}

.ms-component[data-component="instagramWall"] .ms-instagram-wall-empty[hidden] {
  display: none !important;
}

.ms-component[data-component="instagramWall"] .ms-instagram-wall-empty-icon {
  display: grid;
  place-items: center;

  width: 92px;
  height: 92px;

  margin-bottom: 1.2rem;

  border: 1px solid rgba(201, 102, 131, 0.22);

  border-radius: 50%;

  color: var(--instagram-pink);

  background: rgba(201, 102, 131, 0.07);
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-empty-icon
  svg {
  width: 58px;
  height: 58px;
}

.ms-component[data-component="instagramWall"] .ms-instagram-wall-empty-title {
  margin: 0 0 0.7rem;

  color: var(--instagram-text);

  font-family: var(--ms-font-title, "Playfair Display", serif);

  font-size: clamp(1.6rem, 4vw, 2.2rem);

  font-weight: 500;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-empty-description {
  max-width: 520px;

  margin: 0;

  font-size: 0.88rem;
  line-height: 1.7;
}

/* =========================================================
   NOTA INFERIOR
========================================================= */

.ms-component[data-component="instagramWall"] .ms-instagram-wall-footer-note {
  width: min(92%, 760px);

  margin: clamp(2rem, 5vw, 3.5rem) auto 0;

  color: rgba(52, 43, 37, 0.5);

  font-size: 0.75rem;
  line-height: 1.65;

  text-align: center;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-footer-note[hidden] {
  display: none !important;
}

/* =========================================================
   ESTADO GENERAL
========================================================= */

.ms-component[data-component="instagramWall"] .ms-instagram-wall-status {
  width: min(90%, 720px);

  margin: 2rem auto 0;

  padding: 1rem 1.2rem;

  border: 1px solid rgba(200, 164, 107, 0.24);

  border-radius: var(--ms-radius-lg, 18px);

  color: var(--instagram-primary-dark);

  background: rgba(200, 164, 107, 0.08);

  font-size: 0.84rem;
  font-weight: 550;
  line-height: 1.55;

  text-align: center;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-status[hidden] {
  display: none !important;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-status.is-error {
  border-color: rgba(163, 75, 75, 0.24);

  color: var(--instagram-error);

  background: rgba(163, 75, 75, 0.08);
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-status.is-success {
  border-color: rgba(85, 116, 93, 0.24);

  color: var(--instagram-success);

  background: rgba(85, 116, 93, 0.08);
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-status.is-info {
  border-color: rgba(107, 111, 134, 0.24);

  color: var(--instagram-info);

  background: rgba(107, 111, 134, 0.08);
}

/* =========================================================
   LIGHTBOX
========================================================= */

.ms-component[data-component="instagramWall"] .ms-instagram-wall-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: grid;
  place-items: center;

  padding: clamp(1rem, 4vw, 2rem);

  opacity: 0;

  visibility: hidden;

  transition:
    opacity 250ms ease,
    visibility 250ms ease;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-lightbox[hidden] {
  display: none !important;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-lightbox.is-open {
  opacity: 1;

  visibility: visible;
}

/* =========================================================
   BACKDROP DEL LIGHTBOX
========================================================= */

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-lightbox-backdrop {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  margin: 0;
  padding: 0;

  border: 0;

  background: rgba(25, 19, 17, 0.74);

  backdrop-filter: blur(14px);

  -webkit-backdrop-filter: blur(14px);

  cursor: pointer;
}

/* =========================================================
   DIÁLOGO DEL LIGHTBOX
========================================================= */

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-lightbox-dialog {
  position: relative;
  z-index: 1;

  display: grid;

  grid-template-columns:
    minmax(0, 1.25fr)
    minmax(290px, 0.75fr);

  width: min(100%, 1040px);
  max-height: calc(100vh - 2rem);

  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.42);

  border-radius: clamp(1.2rem, 3vw, 2rem);

  background: rgba(250, 247, 242, 0.96);

  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.34);

  transform: translateY(20px) scale(0.98);

  transition: transform 300ms var(--ms-ease-luxury, ease);
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-lightbox.is-open
  .ms-instagram-wall-lightbox-dialog {
  transform: translateY(0) scale(1);
}

/* =========================================================
   CERRAR LIGHTBOX
========================================================= */

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-lightbox-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 5;

  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;

  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.46);

  border-radius: 50%;

  color: #fff;

  background: rgba(32, 24, 21, 0.45);

  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);

  backdrop-filter: blur(12px);

  -webkit-backdrop-filter: blur(12px);

  cursor: pointer;

  transition:
    background var(--instagram-transition),
    transform var(--instagram-transition);
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-lightbox-close:hover {
  background: rgba(143, 109, 53, 0.82);

  transform: rotate(4deg) scale(1.05);
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-lightbox-close:focus-visible {
  outline: 2px solid #fff;

  outline-offset: 3px;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-lightbox-close
  svg {
  width: 21px;
  height: 21px;
}

/* =========================================================
   MEDIA DEL LIGHTBOX
========================================================= */

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-lightbox-media {
  position: relative;

  display: grid;
  place-items: center;

  min-width: 0;
  min-height: 480px;

  overflow: hidden;

  color: var(--instagram-primary-dark);

  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(255, 255, 255, 0.52),
      transparent 35%
    ),
    linear-gradient(
      145deg,
      rgba(200, 164, 107, 0.15),
      rgba(201, 102, 131, 0.12)
    );
}

.ms-component[data-component="instagramWall"] .ms-instagram-wall-lightbox-image,
.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-lightbox-video {
  display: block;

  width: 100%;
  height: 100%;
  max-height: calc(100vh - 2rem);

  object-fit: contain;

  background: rgba(30, 23, 20, 0.96);
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-lightbox-image[hidden],
.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-lightbox-video[hidden] {
  display: none !important;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-lightbox-placeholder {
  display: grid;
  place-items: center;

  width: 100%;
  min-height: 480px;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-lightbox-placeholder[hidden] {
  display: none !important;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-lightbox-placeholder
  svg {
  width: clamp(90px, 15vw, 145px);

  height: clamp(90px, 15vw, 145px);

  opacity: 0.68;
}

/* =========================================================
   CONTENIDO DEL LIGHTBOX
========================================================= */

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-lightbox-content {
  display: flex;
  flex-direction: column;

  min-width: 0;

  padding: clamp(1.4rem, 4vw, 2.2rem);

  overflow-y: auto;
}

.ms-component[data-component="instagramWall"] .ms-instagram-wall-lightbox-type {
  align-self: flex-start;

  margin-bottom: 0.85rem;

  padding: 0.35rem 0.72rem;

  border: 1px solid rgba(200, 164, 107, 0.24);

  border-radius: 999px;

  color: var(--instagram-primary-dark);

  background: rgba(200, 164, 107, 0.08);

  font-size: 0.63rem;
  font-weight: 750;

  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-lightbox-type[hidden] {
  display: none !important;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-lightbox-title {
  margin: 0 0 0.9rem;

  color: var(--instagram-text);

  font-family: var(--ms-font-title, "Playfair Display", serif);

  font-size: clamp(1.7rem, 4vw, 2.55rem);

  font-weight: 500;
  line-height: 1.15;

  text-wrap: balance;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-lightbox-caption {
  margin: 0 0 1rem;

  color: var(--instagram-muted);

  font-size: 0.9rem;
  line-height: 1.75;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-lightbox-caption[hidden] {
  display: none !important;
}

.ms-component[data-component="instagramWall"] .ms-instagram-wall-lightbox-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 0.6rem;

  margin-bottom: 1.3rem;

  color: var(--instagram-soft-text);

  font-size: 0.72rem;
  font-weight: 650;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-lightbox-meta[hidden] {
  display: none !important;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-lightbox-meta
  span {
  display: inline-flex;
  align-items: center;

  min-height: 27px;

  padding: 0.3rem 0.65rem;

  border: 1px solid rgba(200, 164, 107, 0.18);

  border-radius: 999px;

  background: rgba(200, 164, 107, 0.06);
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-lightbox-meta
  span[hidden] {
  display: none !important;
}

.ms-component[data-component="instagramWall"] .ms-instagram-wall-lightbox-link {
  align-self: flex-start;

  margin-top: auto;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-lightbox-link[hidden] {
  display: none !important;
}

/* =========================================================
   NAVEGACIÓN DEL LIGHTBOX
========================================================= */

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-lightbox-navigation {
  position: absolute;
  top: 50%;
  z-index: 4;

  display: grid;
  place-items: center;

  width: 44px;
  height: 44px;

  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.46);

  border-radius: 50%;

  color: #fff;

  background: rgba(32, 24, 21, 0.42);

  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);

  backdrop-filter: blur(12px);

  -webkit-backdrop-filter: blur(12px);

  transform: translateY(-50%);

  cursor: pointer;

  transition:
    background var(--instagram-transition),
    transform var(--instagram-transition);
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-lightbox-navigation:hover {
  background: rgba(143, 109, 53, 0.84);

  transform: translateY(-50%) scale(1.06);
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-lightbox-navigation:focus-visible {
  outline: 2px solid #fff;

  outline-offset: 3px;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-lightbox-navigation[hidden] {
  display: none !important;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-lightbox-navigation--previous {
  left: 0.9rem;
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-lightbox-navigation--next {
  right: calc(32% + 0.9rem);
}

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall-lightbox-navigation
  svg {
  width: 24px;
  height: 24px;
}

/* =========================================================
   VARIANTE PREMIUM
========================================================= */

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall--premium
  .ms-instagram-wall-post,
.ms-component[data-component="instagramWall"]
  .ms-instagram-wall--premium
  .ms-instagram-wall-profile {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.7),
    rgba(255, 255, 255, 0.29)
  );
}

/* =========================================================
   VARIANTE GLASS
========================================================= */

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall--glass
  .ms-instagram-wall-post,
.ms-component[data-component="instagramWall"]
  .ms-instagram-wall--glass
  .ms-instagram-wall-profile {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.46),
    rgba(255, 255, 255, 0.16)
  );

  backdrop-filter: blur(30px) saturate(1.16);

  -webkit-backdrop-filter: blur(30px) saturate(1.16);
}

/* =========================================================
   VARIANTE MINIMAL
========================================================= */

.ms-component[data-component="instagramWall"]
  .ms-instagram-wall--minimal
  .ms-instagram-wall-post,
.ms-component[data-component="instagramWall"]
  .ms-instagram-wall--minimal
  .ms-instagram-wall-profile {
  border-color: rgba(200, 164, 107, 0.18);

  background: rgba(255, 255, 255, 0.35);

  box-shadow: 0 18px 48px rgba(48, 36, 28, 0.08);

  backdrop-filter: blur(15px);

  -webkit-backdrop-filter: blur(15px);
}

/* =========================================================
   RESPONSIVE — ESCRITORIO MEDIO
========================================================= */

@media (max-width: 1050px) {
  .ms-component[data-component="instagramWall"] .ms-instagram-wall-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall-post.is-featured {
    grid-column: span 1;
  }

  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall-post.is-featured
    .ms-instagram-wall-post-media {
    aspect-ratio: 1 / 1;
  }

  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall-lightbox-dialog {
    grid-template-columns:
      minmax(0, 1.15fr)
      minmax(270px, 0.85fr);
  }

  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall-lightbox-navigation--next {
    right: calc(38% + 0.9rem);
  }
}

/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 780px) {
  .ms-component[data-component="instagramWall"] .ms-instagram-wall {
    padding: clamp(4.5rem, 9vw, 6rem) 0;
  }

  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall
    .ms-container {
    width: 92%;
  }

  .ms-component[data-component="instagramWall"] .ms-instagram-wall-profile {
    grid-template-columns:
      auto
      minmax(0, 1fr);
  }

  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall-profile-actions {
    grid-column: 1 / -1;

    justify-content: center;
  }

  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall-lightbox-dialog {
    grid-template-columns: 1fr;

    width: min(100%, 680px);

    overflow-y: auto;
  }

  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall-lightbox-media {
    min-height: 390px;
    max-height: 58vh;
  }

  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall-lightbox-image,
  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall-lightbox-video {
    max-height: 58vh;
  }

  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall-lightbox-placeholder {
    min-height: 390px;
  }

  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall-lightbox-navigation--next {
    right: 0.9rem;
  }
}

/* =========================================================
   RESPONSIVE — MÓVIL
========================================================= */

@media (max-width: 600px) {
  .ms-component[data-component="instagramWall"] .ms-instagram-wall {
    padding: 4.5rem 0;
  }

  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall
    .ms-container {
    width: 90%;
  }

  .ms-component[data-component="instagramWall"] .ms-instagram-wall-header {
    margin-bottom: 2.8rem;
  }

  .ms-component[data-component="instagramWall"] .ms-instagram-wall-profile {
    grid-template-columns: 1fr;

    justify-items: center;

    border-radius: 1.6rem;

    text-align: center;
  }

  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall-profile-description {
    margin-inline: auto;
  }

  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall-profile-meta {
    justify-content: center;
  }

  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall-instructions {
    grid-template-columns: 1fr;

    justify-items: center;

    text-align: center;
  }

  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall-instructions-description {
    max-width: 530px;

    margin-inline: auto;
  }

  .ms-component[data-component="instagramWall"] .ms-instagram-wall-filters {
    width: 100%;
    max-width: 100%;
  }

  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall-filters-track {
    justify-content: flex-start;

    border-radius: 1.3rem;
  }

  .ms-component[data-component="instagramWall"] .ms-instagram-wall-filter {
    min-height: 42px;

    padding: 0.68rem 0.9rem;
  }

  .ms-component[data-component="instagramWall"] .ms-instagram-wall-grid {
    grid-template-columns: 1fr;
  }

  .ms-component[data-component="instagramWall"] .ms-instagram-wall-post {
    border-radius: 1.45rem;
  }

  .ms-component[data-component="instagramWall"] .ms-instagram-wall-post-media,
  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall-post.is-featured
    .ms-instagram-wall-post-media {
    aspect-ratio: 4 / 3;
  }

  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall-post-placeholder {
    min-height: 250px;
  }

  .ms-component[data-component="instagramWall"] .ms-instagram-wall-lightbox {
    padding: 0.65rem;
  }

  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall-lightbox-dialog {
    max-height: calc(100vh - 1.3rem);

    border-radius: 1.25rem;
  }

  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall-lightbox-media {
    min-height: 300px;
    max-height: 48vh;
  }

  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall-lightbox-image,
  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall-lightbox-video {
    max-height: 48vh;
  }

  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall-lightbox-placeholder {
    min-height: 300px;
  }

  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall-lightbox-content {
    padding: 1.25rem;
  }

  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall-lightbox-navigation {
    top: 25%;

    width: 40px;
    height: 40px;
  }

  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall-lightbox-navigation--previous {
    left: 0.6rem;
  }

  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall-lightbox-navigation--next {
    right: 0.6rem;
  }
}

/* =========================================================
   MÓVIL PEQUEÑO
========================================================= */

@media (max-width: 390px) {
  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall
    .ms-container {
    width: 92%;
  }

  .ms-component[data-component="instagramWall"] .ms-instagram-wall-profile,
  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall-instructions {
    padding: 1rem;
  }

  .ms-component[data-component="instagramWall"] .ms-instagram-wall-filter {
    font-size: 0.73rem;
  }

  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall-post-content {
    padding: 1rem;
  }

  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall-lightbox-media {
    min-height: 260px;
  }

  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall-lightbox-placeholder {
    min-height: 260px;
  }

  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall-lightbox-title {
    font-size: 1.55rem;
  }
}

/* =========================================================
   CLASE VISUALMENTE OCULTA
========================================================= */

.ms-component[data-component="instagramWall"] .ms-visually-hidden {
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;

  padding: 0 !important;
  margin: -1px !important;

  overflow: hidden !important;

  clip: rect(0, 0, 0, 0) !important;

  white-space: nowrap !important;

  border: 0 !important;
}

/* =========================================================
   PROTECCIÓN FINAL
========================================================= */

.ms-component[data-component="instagramWall"] {
  max-width: 100%;

  overflow-x: hidden;
  overflow-x: clip;

  filter: none !important;
  -webkit-filter: none !important;

  opacity: 1 !important;
  visibility: visible !important;
}

.ms-component[data-component="instagramWall"] .ms-instagram-wall {
  max-width: 100%;

  filter: none !important;
  -webkit-filter: none !important;
}

.ms-component[data-component="instagramWall"] .ms-instagram-wall-filters {
  max-width: 100%;

  overflow: hidden;
}

.ms-component[data-component="instagramWall"] .ms-instagram-wall-filters-track {
  max-width: 100%;

  overscroll-behavior-x: contain;
}

/* =========================================================
   MOVIMIENTO REDUCIDO
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .ms-component[data-component="instagramWall"] .ms-instagram-wall-profile,
  .ms-component[data-component="instagramWall"] .ms-instagram-wall-instructions,
  .ms-component[data-component="instagramWall"] .ms-instagram-wall-filters,
  .ms-component[data-component="instagramWall"] .ms-instagram-wall-post,
  .ms-component[data-component="instagramWall"] .ms-instagram-wall-post-image,
  .ms-component[data-component="instagramWall"] .ms-instagram-wall-post-video,
  .ms-component[data-component="instagramWall"] .ms-instagram-wall-filter,
  .ms-component[data-component="instagramWall"] .ms-instagram-wall-lightbox,
  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall-lightbox-dialog,
  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall-lightbox-navigation,
  .ms-component[data-component="instagramWall"]
    .ms-instagram-wall-lightbox-close {
    animation: none !important;

    transition: none !important;
  }

  .ms-component[data-component="instagramWall"] .ms-instagram-wall-profile,
  .ms-component[data-component="instagramWall"] .ms-instagram-wall-instructions,
  .ms-component[data-component="instagramWall"] .ms-instagram-wall-filters,
  .ms-component[data-component="instagramWall"] .ms-instagram-wall-post {
    opacity: 1 !important;

    transform: none !important;
  }

  .ms-component[data-component="instagramWall"] .ms-instagram-wall-spinner {
    animation: none !important;
  }
}
