/*!***************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!./src/components/NewsImages.css ***!
  \***************************************************************************************************************************************************************************************************************************************************************************/


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1.1) contrast(1.1);
  }
  50% {
    transform: scale(1.05);
    filter: brightness(1.2) contrast(1.2);
  }
}

@keyframes like-pop {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.12);
    opacity: 0.85;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Improved loading overlay positioning */
.loading-more-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  z-index: 100;
}

.api-data-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10;
}

.horizontal-slider {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.horizontal-slider::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.slider-item {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  scroll-snap-align: start;
  position: relative;
}

.slider-item img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
}

.item-title {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  color: white;
  background: rgba(0, 0, 0, 0.8);
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  font-size: 14px;
}

.api-loading-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px;
  border-radius: 5px;
  z-index: 10;
}

.slideshow-button {
    position: fixed;
    bottom: 80px; /* Position above the download button */
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
  }
  
  .slideshow-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
  }
  
  .slideshow-button.active {
    background: #007bff;
  }
  
  .slideshow-button svg {
    width: 20px;
    height: 20px;
  }
  .close-slideshow-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: all 0.3s ease;
  }
  
  .close-slideshow-button:hover {
    background: rgba(255, 0, 0, 0.8);
    transform: scale(1.1);
  }
  
  .close-slideshow-button svg {
    width: 16px;
    height: 16px;
  }
  .icon-row {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    position: absolute;
    bottom: 4%;
    right: 2%;
    margin: 0;
    transform: none;
    z-index: 2;
  }

  .glass-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(0.5px);
    backdrop-filter: blur(3px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: none;
  }

  .glass-icon:hover {
    transform: scale(1.12);
  }

  .glass-icon svg {
    width: 28px;
    height: 28px;
    /* fill: none; */
    stroke: rgba(255, 255, 255); /* etched look */
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 0.1px rgba(0, 0, 0, 0.4));
  }

.image-card{
  position: relative;
  width: 100%;
}

.glass-icon.favorited {
  color: #e91e63 !important;
  
}

.glass-icon.favorited svg {
  stroke: #e91e63 !important;
  animation: like-pop 0.2s cubic-bezier(0.4, 0.2, 0.2, 1.2);
}

.glass-icon.download svg {
  fill: none !important;
}


@media(min-width:768px) {
  .image-card {
    /* width: 100%; */
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: #000; */
    margin: 0;
    padding: 0;
    /* position: relative; */
    align-self: flex-start;
    height: 100%;
}
}
