/* Studio Expand Styles */

.wg-dos-swiper {
  overflow: hidden !important;
  margin-top: 50px;
}

/* Strictly inside container */
.wg-dos-swiper .swiper-slide {
  width: 420px;
  transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: width, transform;
}

.wg-dos-swiper .swiper-slide.is-expanded {
  width: 840px !important;
  z-index: 999;
}

.wg-dos-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 480px;
  display: flex;
  background: #000;
  width: 100%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.wg-dos-compact-view {
  width: 420px;
  height: 100%;
  position: relative;
  flex-shrink: 0;
  transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.wg-dos-expanded-view {
  display: flex;
  opacity: 0;
  width: 0;
  height: 100%;
  background: #121313;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease 0.2s;
  border-left: 1px solid #222;
  flex-shrink: 0;
}

.is-expanded .wg-dos-compact-view {
  width: 420px;
  flex-shrink: 0;
}

.is-expanded .wg-dos-expanded-view {
  opacity: 1;
  width: 420px;
  min-width: 420px;
  flex-shrink: 0;
}

.wg-dos-exp-header {
  background: #b11f24;
  color: #fff;
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wg-dos-exp-header h3 {
  font-family: 'Tanker', sans-serif;
  font-size: clamp(20px, 1.5vw, 28px);
  margin: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.wg-dos-collapse-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  line-height: 1;
  padding: 0px;
  margin: 0px;
}

.wg-dos-exp-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 30px;
  gap: 20px;
}

.wg-dos-exp-address {
  color: #fff;
  font-family: 'Tanker', sans-serif;
  font-size: clamp(18px, 1.3vw, 22px);
  line-height: 1.2;
  text-transform: uppercase;
}

.wg-dos-swiper .wg-dos-exp-address {
  font-size: clamp(18px, 1.9vw, 28px);
}

.wg-dos-exp-phone-pill {
  background: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 50px;
  width: fit-content;
  text-decoration: none;
  padding-left: 0px;
}

.wg-dos-exp-phone-icon {
  background: #b11f24;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wg-dos-swiper .wg-dos-exp-phone-icon {
  width: 45px;
  height: 45px;
}

.wg-dos-exp-phone-icon img {
  width: 18px;
}

.wg-dos-swiper .wg-dos-exp-phone-icon img {
  width: 50px;
}

.wg-dos-exp-phone-text {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

.wg-dos-exp-footer {
  background: #0d0d0d;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 50px;
  margin: 0 20px 20px;
  width: fit-content;
  max-width: calc(100% - 40px);
}

.wg-dos-swiper .wg-dos-exp-footer {
  padding: 12px 12px;
}

.wg-dos-exp-email-icon {
  background: #b11f24;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wg-dos-exp-email-icon img {
  width: 16px;
}

.wg-dos-swiper .wg-dos-exp-email-icon img {
  width: 50px;
}

.wg-dos-exp-emails {
  color: #888;
  font-size: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.wg-dos-exp-emails a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.wg-dos-exp-emails a:hover {
  color: #fff;
}

.wg-dos-exp-emails span {
  color: #444;
}

/* Ensure studio image always fills the compact view */
.wg-dos-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.wg-dos-img p {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.wg-dos-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.wg-dos-img::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 25, 25, 0) 60%, rgba(23, 25, 25, 0.8) 80%, #171919 100%);
  z-index: 1;
}

.wg-dos-info {
  position: absolute;
  z-index: 5;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 24px 24px;
  pointer-events: none;
}

.wg-dos-lang {
  color: #fff !important;
  text-align: center;
  font-family: 'Tanker', sans-serif !important;
  font-size: clamp(32px, 3.5vw, 48px) !important;
  line-height: 1 !important;
  text-transform: uppercase;
  margin-top: 20px !important;
  margin-bottom: 0 !important;
}

.wg-dos-time {
  color: #bbb !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  margin-bottom: 8px !important;
  text-transform: uppercase;
}

.wg-dos-name {
  color: #fff !important;
  font-family: 'Tanker', sans-serif !important;
  font-size: clamp(20px, 1.8vw, 28px) !important;
  line-height: 1 !important;
  text-transform: uppercase;
  margin-bottom: 0 !important;
}

.wg-dos-expand-btn {
  position: absolute;
  bottom: 20px !important;
  right: 20px !important;
  background: #b11f24 !important;
  color: #fff !important;
  border: none !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  font-size: 24px !important;
  font-weight: 300 !important;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10;
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
  pointer-events: auto;
  line-height: 1 !important;
}

.wg-dos-expand-btn:hover {
  background: #d12a30;
}

.is-expanded .wg-dos-expand-btn {
  opacity: 0;
  pointer-events: none;
}

/* Help browser prioritize the expansion layer */
.is-expanded .wg-dos-card {
  will-change: contents;
}

@media (max-width: 1200px) {
  .wg-dos-swiper .swiper-slide {
    width: 380px;
  }

  .wg-dos-swiper .swiper-slide.is-expanded {
    width: 790px !important;
  }

  .is-expanded .wg-dos-compact-view {
    width: 380px;
  }

  .is-expanded .wg-dos-expanded-view {
    width: 410px;
  }
}

@media (max-width: 1024px) {
  .wg-dos-swiper .swiper-slide {
    width: 400px;
  }

  .wg-dos-swiper .swiper-slide.is-expanded {
    width: min(990px, 95vw) !important;
  }

  .is-expanded .wg-dos-compact-view {
    width: 400px;
  }

  .is-expanded .wg-dos-expanded-view {
    width: calc(95vw - 400px);
  }
}

@media (max-width: 768px) {
  .wg-dos-swiper .swiper-slide {
    width: 280px;
  }

  .wg-dos-swiper .swiper-slide.is-expanded {
    width: 95vw !important;
  }

  .wg-dos-card {
    flex-direction: column;
    height: auto;
    min-height: auto;
  }

  .wg-dos-compact-view {
    width: 100% !important;
    height: 280px;
  }

  .wg-dos-expanded-view {
    width: 100% !important;
    height: 0;
    border-left: none;
    border-top: 1px solid #222;
  }

  .is-expanded .wg-dos-expanded-view {
    opacity: 1;
    width: 100% !important;
    height: auto;
    min-width: unset;
    padding-bottom: 20px;
  }

  .is-expanded .wg-dos-compact-view {
    width: 100% !important;
  }

  .wg-dos-exp-header {
    padding: 12px 16px;
  }

  .wg-dos-exp-body {
    padding: 20px 16px;
    gap: 15px;
  }

  .wg-dos-exp-footer {
    margin: 0 16px 16px;
  }
}