/* General resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #060606;
    -webkit-text-size-adjust: none;
  text-size-adjust: none; /* For other browsers */
}

/* Full-screen container */
.collection-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* Header section */
.header {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 12px;
    background-color: rgba(0, 0, 0, 0.3);
    background: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
    padding-bottom: 120px;
    color: white;
    z-index: 10;
}

.profile-info {
    display: flex;
    align-items: center;
}

.profile-image{
    color: white;
    border: 0;
    outline:0;
    text-decoration: none;  /* Remove underline */
    outline: none;  /* Remove outline when clicked or focused */
}

.collection-name a, .profile-name a{
    text-decoration: none;  /* Remove underline */
    outline: none;  /* Remove outline when clicked or focused */
    color: inherit;
}

.blue-verified-icon-collections{
    width: 12px;
    height: 12px;
    margin-left: 5px;}

.profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.text-info h2 {
    font-size: 16px;
}

.text-info p {
    font-size: 12px;
    opacity: 0.8;
}

.header-actions{
    display: flex;
    align-items: center;
}

.close-button {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    background: rgba(0, 0, 0, 0.3);
    width: 34px;
    height: 34px;
    text-align: center;
    border-radius: 50%;
    text-decoration: none;
}

.item-counter {
    font-size: 14px;
    opacity: 1;
    margin-right: 14px;
}

/* Image slider */
.image-slider {
    flex-grow: 1;
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    width: 100%;
    max-width: 500px;
    margin: 0px auto;
    scrollbar-width: none; /* For Firefox */
    overflow-y: hidden;
    max-height: 100%;
}
.item-slider::-webkit-scrollbar {
          display: none;
     }


.item {
    min-width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    
    background-position: center;
    background: linear-gradient(to bottom, #525252, #282828);
    background-size: cover;
    
    overflow: hidden;
}

.featured-img-container, .image-caption{
    z-index: 1;
}

.featured-img, a.featured-img-container {
   object-fit: cover;
    width: 100%;
    height: auto;
    margin:auto;
    max-height: 100%;
    border: none;
    outline: none;
    text-decoration: none;
}

.featured-img.featured-img-full-screen, a.featured-img-container.featured-img-full-screen{
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.featured-img.featured-img-contain-original, a.featured-img-container.featured-img-contain-original{
    height: auto;       /* override fullscreen height */
    /*object-fit: contain;*/
    object-fit: cover;
    width: 100%;
}

a.featured-img-container:focus,
a.featured-img-container:hover,
a.featured-img-container:active{
    outline: none;
    border: none;
    text-decoration: none;
}

.image-caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    color: white;
    text-align: left;
    padding: 20px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.image-caption a{
    text-decoration: none;
    color: inherit;
}

.item-quote {
    font-size: 18px;
    line-height: 1.3em;
    margin-bottom: 10px;
    font-style: italic;
    font-style: normal;
    max-height: calc(1.3em * 4); /* Limit the height to 3 lines */
    overflow: scroll;
    position: relative;
    width: calc(100% - 70px);
    width: calc(100% - 0px);
    transition: max-height 0.5s ease, mask-position 0.5s ease, -webkit-mask-position 0.5s ease; /* Smooth transition */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-position: bottom;
    mask-position: bottom;
    -webkit-mask-size: 100% 200%;
    mask-size: 100% 200%;
    scrollbar-width: none; /* For Firefox */
}
.item-quote::-webkit-scrollbar {
          display: none;
     }

.item-quote.expanded {
    max-height: 240px; /* Remove height limit when expanded */
    overflow: scroll;
    left: -20px;
    padding: 10px 20px 5px 20px;
    padding-bottom: 5px;
    border-radius: 5px;
    background: #00000011;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%);
    width: calc(100% - 50px);
    width: calc(100% + 40px);
    -webkit-mask-position: top;
    mask-position: top;
}

.item-quote.collapsed {
    max-height: calc(1.3em * 4); /* Collapse back to 3 lines */
    overflow: scroll; /* Hide overflow again */
}

.item-quote p{
    margin-bottom: 6px;
}

.show-more {
    cursor: pointer;
    color: #007bff;
    text-decoration: underline;
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
}


.item-title{
     color: inherit;
    font-size: 20px;
    margin-bottom: 6px;
    position: relative;
    padding: 0;
    max-height: 48px; /* This should be line-height * 2 */
    line-height: 24px; /* This defines the height of each line */
    overflow: hidden;
    display: -webkit-box;            /* Necessary for line clamping */
    -webkit-line-clamp: 2;           /* Limits text to 2 lines */
    -webkit-box-orient: vertical;    /* Sets box orientation to vertical */
    text-overflow: ellipsis;
    width: calc(100% - 70px);
}

.item-rating{
    font-size: 12px;
    line-height: 12px;
    padding: 2px 4px;
    background: #69ff50;
    border-radius: 2px;
    margin: 0;
    margin-left: 10px;
    display: inline-block;
    top: 4px;
    position: absolute;
    color: #333;
}

.item-location{
    font-size: 12px;
    color: #ccc;
}

.book-now {
    background-color: #007BFF;
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 14px 20px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 5px;
    text-decoration :none;
    display: inline-block;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
    line-height: 18px;
    position: relative;
    /*transition: background-color 0.1s ease;*/
    /*font-weight: bold;*/
}

.book-now i{
    font-size: 12px;
    margin-left: 8px;
    line-height: 16px;
    position: absolute;
    margin-top: auto;
    margin-bottom: auto;
}

.book-now:hover, .book-now:focus, .book-now:active {
    filter: brightness(120%);
}

.book-now.button_bg_mode_default_light{
    background-color: #00000044;
    color: #FFFFFF;
}
.book-now.button_bg_mode_default_dark{
    background-color: #FFFFFF44;
    color: #FFFFFF;
}

.book-now.button_bg_mode_default_light:hover, .book-now.button_bg_mode_default_light:focus, .book-now.button_bg_mode_default_light:active{
    background-color: #00000055;
    filter: brightness(100%);
}

.book-now.button_bg_mode_default_dark:hover, .book-now.button_bg_mode_default_dark:focus, .book-now.button_bg_mode_default_dark:active{
    background-color: #FFFFFF55;
    filter: brightness(100%);
}


.disclosure-statement{
    font-size: 12px;
    color: #aaa;
    text-align: center;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    color: white;
    font-size: 14px;
    height: 40px;
    width: 40px;
    border-radius: 20px;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.slider-nav:hover, .slider-nav:focus, .slider-nav:active{
    background-color: rgba(0, 0, 0, 0.5);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.slider-nav:disabled {
    display: none;
}


.background-blur{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: rgba(0,0,0,0.3);
    filter: blur(20px);
    transform: scale(1.1);
    z-index: 0;
}

.background-blur-disabled{
    display: none;
}

.background-blur::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.0); /* darken a bit */
}

@media (min-width: 500px) {
    .header{
        /*background: none;*/
        padding-bottom: 80px;
    }
    
    
    
    .slider-nav{
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .slider-nav:hover, .slider-nav:focus, .close-button:hover, .close-button:focus{
        background-color: rgba(255, 255, 255, 0.2);
    }
}
