.header-image-rotator {
    position: relative;
    width: 100%;
    height: 100vh;    
    overflow: hidden;
    margin: 0; 
}

.header-content {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1440px;
    padding: 0 40px 20px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}


.rotator-item {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.rotator-item.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.rotator-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: center;
}

.rotator-title {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    width: fit-content;
    font-family: EB Garamond;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 2.75rem;
    line-height: 120%;
    letter-spacing: 0%;
    text-shadow: 0px 4px 5.8px #00000040;
    text-align: center;
    margin: 0;
}

.rotator-next {
    position: absolute;
    bottom: 40px;
    right: 90px;
    border: 1px solid white;
    border-radius: 8px;
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
}

.rotator-next:hover {
    background: #917859 !important;
    border-color: #917859;
}
.rotator-next:focus,
.rotator-next:focus-visible,
.rotator-next:active {
    outline: none;
    box-shadow: none;
}

.rotator-next img {
    pointer-events: none;
    filter: brightness(0) invert(1);
}


@media (max-width: 767px) {

    .header-image-rotator {
    height: 35vh; 
}

.header-content {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1440px;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  gap: 20px;
}

.rotator-title {
    position: unset;
    transform: none;
    width: 100%;
    font-size: 1.5rem;
    text-align: left;
}


.rotator-next.rotator-next.rotator-next {
    position: unset;
}
}

@media (min-width: 767px) and (max-width: 1024px) {
    .header-image-rotator {
    height: 80vh; 
}

.header-content {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1440px;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  gap: 20px;
}

.rotator-title {
    position: unset;
    transform: none;
    width: 100%;
    font-size: 2rem;
    text-align: left;
}


.rotator-next.rotator-next.rotator-next {
    position: unset;
}

}