/* Drezen Video Gallery — scoped to this widget only */

.elementor-widget-drezen_videos,
.elementor-widget-drezen_videos > .elementor-widget-container {
  width: 100%;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

.dz-videos {
  --dz-vid-font: "Poppins", Arial, sans-serif;
  --dz-vid-eyebrow: #9a5a4f;
  --dz-vid-heading: #12131a;
  --dz-vid-accent: #7c5348;
  --dz-vid-text: #8a827d;
  --dz-vid-bg: #faf5f2;
  --dz-vid-play: #ffffff;
  --dz-vid-radius: 14px;

  font-family: var(--dz-vid-font);
  background: var(--dz-vid-bg);
  padding: 80px 20px 92px;
  box-sizing: border-box;
  margin: 0;
}

.dz-videos *,
.dz-videos *::before,
.dz-videos *::after {
  box-sizing: border-box;
}

.dz-videos p,
.dz-videos h2 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.entry-content .dz-videos p,
.entry-content .dz-videos h2,
.ast-container .dz-videos p,
.ast-container .dz-videos h2 {
  margin-bottom: 0 !important;
}

.dz-videos__inner {
  max-width: 1080px;
  margin: 0 auto;
}

.dz-videos__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  text-align: left;
  margin: 0 0 46px;
}

.dz-videos__head-left {
  flex: 1 1 58%;
  max-width: 620px;
}

.dz-videos__head-right {
  flex: 1 1 38%;
  max-width: 460px;
  padding-bottom: 6px;
}

.dz-videos__eyebrow {
  display: inline-block;
  color: var(--dz-vid-eyebrow);
  font-size: var(--dz-fs-eyebrow);
  font-weight: 600;
  letter-spacing: 2.5px;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.dz-videos__title {
  color: var(--dz-vid-heading);
  font-weight: 600;
  font-size: var(--dz-fs-h2);
  line-height: 1.12;
  margin: 0 !important;
  letter-spacing: -0.5px;
}

.dz-videos__title-accent {
  color: var(--dz-vid-accent);
}

.dz-videos__subtitle {
  color: var(--dz-vid-text);
  font-size: var(--dz-fs-body);
  line-height: 1.75;
  margin: 0 !important;
}

.dz-videos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dz-videos__card {
  position: relative;
  display: block;
  border-radius: var(--dz-vid-radius);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  cursor: pointer;
  text-decoration: none !important;
  background: #c9c4c0;
  box-shadow: 0 14px 30px -18px rgba(50, 30, 20, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 0;
  padding: 0;
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
}

.dz-videos__thumb {
  position: absolute;
  inset: 0;
  background-color: #c9c4c0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.5s ease;
}

.dz-videos__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.4));
}

.dz-videos__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 40px -16px rgba(50, 30, 20, 0.5);
}

.dz-videos__card:hover .dz-videos__thumb {
  transform: scale(1.07);
}

.dz-videos__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--dz-vid-play);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.dz-videos__card:hover .dz-videos__play {
  transform: translate(-50%, -50%) scale(1.12);
}

.dz-videos__label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  color: #fff;
  font-size: var(--dz-fs-body-sm);
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.dz-videos__modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 6, 4, 0.85);
  padding: 20px;
}

.dz-videos__modal.is-open {
  display: flex;
}

.dz-videos__modal-inner {
  position: relative;
  width: min(900px, 100%);
}

.dz-videos__modal-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.dz-videos__modal-frame iframe,
.dz-videos__modal-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.dz-videos__close {
  position: absolute;
  top: -42px;
  right: 0;
  background: none;
  border: 0;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

@media (max-width: 820px) {
  .dz-videos__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .dz-videos__head-left,
  .dz-videos__head-right {
    max-width: none;
    width: 100%;
  }

  .dz-videos__head-right {
    padding-bottom: 0;
  }

  .dz-videos__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  
}

@media (max-width: 520px) {
  .dz-videos {
    padding: 60px 18px 68px;
  }

  .dz-videos__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}
