body {
        font-family: "Barlow", sans-serif;
    display: block;
    justify-content: center;
    align-items: center;
    /*min-height: 100vh;*/
    margin: 0;
    background-color: #f0f0f0;
    /*overflow-x: hidden;*/
}

.photostory-container {
    background-color: #fff;
    border-radius: 8px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 800px; /* Overall max width of the photostory card */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin:0 auto;
        margin-top: 164px;
}


.photostory-container::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #f8f8f8 0%, #ede7f6 50%, #fefefe 100%);
    z-index: -1;
    border-radius: 12px;
    opacity: 0.9;
}

.photostory-header {
    padding: 15px 20px 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.photostory-header h1 {
    margin: 0;
    color: #333;
    font-size: 1.8em;
}

.top-ad-box {
    width: 100%; /* Take full width of parent */
    text-align: center;
    padding: 0 20px 10px; /* Gutter: 20px left/right padding */
    box-sizing: border-box;
    border-bottom: 1px solid #eee;
    background-color: #fcfcfc;
    display: none !important;
}

.top-ad-box a {
    display: block;
    line-height: 0;
}

.top-ad-box img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.photostory-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Gutter: Apply horizontal padding here to push content in */
    padding: 10px 20px 20px; /* 20px gutter on left/right for image and bottom ads */
}

.slide-description {
    width: 100%;
    text-align: center;
    font-size: 1.1em;
    color: #444;
    margin-bottom: 10px;
    font-weight: bold;
}

.photo-wrapper {
    position: relative;
    width: 100%; /* Take full width of its parent (photostory-content) */
    max-width: 800px; /* Limits the image width if content area is wider */
    height: auto;
    overflow: hidden; /* Important: Ensures nothing spills outside, especially arrows */
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-wrapper img {
    max-width: 100%; /* Image will scale down to fit photo-wrapper's width */
    height: auto;
    max-height: 600px;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.2s ease-out;
}

.photo-wrapper img:active {
    transform: scale(1.01);
}

/* Ad Box Styling (Bottom - Event Details) */
.ad-box {
    background: linear-gradient(to right, #fdfbfb 0%, #ebedee 100%);
    border-radius: 8px;
    padding: 15px; /* Internal padding of the ad box */
    margin-top: 15px;
    text-align: center;
    width: 100%; /* Take full width of its parent (photostory-content), aligning with image */
    box-sizing: border-box;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: block;
    line-height: 1.6;
}

.event-details-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 10px;
    font-size: 0.95em;
}

.event-item {
    margin: 0;
    padding: 2px 0;
    display: block;
}

.event-label {
    font-weight: bold;
    color: #555;
    display: inline-block;
    min-width: 65px;
    margin-right: 5px;
}

.event-value {
    color: #333;
    word-wrap: break-word;
}

.visit-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1.1em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease-out;
    text-decoration: none;
    display: inline-block;
    min-width: 150px;
    max-width: 250px;
    text-align: center;
    margin-top: 10px;
}

.visit-btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.visit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

/* Newsletter Box Styling */
.newsletter-box {
    background: linear-gradient(to right, #f5f5f5, #e0e0e0);
    border-radius: 8px;
    padding: 10px 15px;
    margin-top: 5px;
    text-align: center;
    width: 100%; /* Take full width of its parent (photostory-content), aligning with image */
    box-sizing: border-box;
    color: #444;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.newsletter-text {
    margin: 0;
    font-size: 0.9em;
    margin-right: 0;
    margin-bottom:20px;
}

.newsletter-btn {
    background-color: #ff8c00;
    color: white;
    border: none;
    padding: 8px 15px;
    font-size: 0.9em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease-out;
    text-decoration: none;
    display: inline-block;
    min-width: 120px;
    text-align: center;
}

.newsletter-btn:hover {
    background-color: #e07b00;
    transform: translateY(-1px);
}

/* Navigation buttons (for inside image positioning) */
.nav-btn {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1.5em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    user-select: none;
    z-index: 10;
}

.nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.nav-btn:disabled {
    background-color: rgba(0, 0, 0, 0.3);
    cursor: not-allowed;
}

.overlay-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 15px 20px;
    font-size: 2em;
}

#prev-btn {
    left: 20px; /* Move further inside the image */
}

#next-btn {
    right: 20px; /* Move further inside the image */
}

.photostory-navigation {
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid #eee;
    background-color: #f8f8f8;
}
.event-details-content .button-part{
    margin-top:20px;
}
.event-details-content .button-part .visit-btn{
    display: inline-block;
    vertical-align: middle;
    margin-top:0;
    
}
.event-details-content .button-part .social-icon{
display: inline-block;
    vertical-align: middle;
    margin-left: 20px;
    padding: 5px 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
}
.event-details-content .button-part .social-icon .shar-icon{
            display: inline-block;
    vertical-align: middle;
    margin-right:5px;
        cursor: pointer;
}
.event-details-content .button-part .social-icon .sharethis-inline-share-buttons{
      display: inline-block !important;
    vertical-align: middle;
    
}
/* --- MOBILE OPTIMIZATIONS (max-width: 768px) --- */
@media (max-width: 768px) {
    body {
        align-items: flex-start;
        min-height: auto;
    }

    .photostory-container {
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
        margin-top: 94px;
    }

    .photostory-container::before {
        display: none;
    }

    .photostory-header {
        padding: 10px 10px 5px;
        border-bottom: none;
    }

    .photostory-header h1 {
        font-size: 1.3em;
    }

    .top-ad-box {
        padding: 0 10px 5px; /* Mobile: Reduced padding */
        border-bottom: none;
    }

    .top-ad-box img {
        border-radius: 0;
        box-shadow: none;
    }

    .photostory-content {
        padding: 0; /* Mobile: No horizontal padding for edge-to-edge look */
        flex-grow: 1;
        justify-content: flex-start;
    }

    .slide-description {
        font-size: 1em;
        margin-bottom: 8px;
        padding: 0 10px;
    }

    .photo-wrapper {
        width: 100%;
        margin: 0;
        flex-grow: 1;
        /* CRITICAL MOBILE HEIGHT CALCULATION: Re-adjusted for new elements */
        min-height: calc(100vh - var(--header-height-mobile) - var(--top-ad-height-mobile) - var(--description-height-mobile) - var(--ad-box-height-mobile) - var(--newsletter-box-height-mobile) - var(--nav-height) - 5px);
    }

    .photo-wrapper img {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
        box-shadow: none;
        object-fit: contain;
    }

    .ad-box {
        width: calc(100% - 30px); /* Mobile: Apply specific width */
        padding: 10px;
        margin: 10px 15px 0;
        box-shadow: none;
    }

    .event-details-content {
        font-size: 0.9em;
        margin-bottom: 8px;
    }

    .event-label {
        min-width: 60px;
    }

    .visit-btn {
        width: calc(100% - 20px);
        padding: 12px 0;
        margin-top: 8px;
        font-size: 0.9em;
        min-width: unset;
        max-width: unset;
    }

    .newsletter-box {
        width: calc(100% - 30px); /* Mobile: Apply specific width */
        padding: 8px 10px;
        margin: 5px 15px 0;
        box-shadow: none;
        flex-direction: column;
    }

    .newsletter-text {
        font-size: 0.8em;
        margin-right: 0;
        margin-bottom: 5px;
        white-space: normal;
    }

    .newsletter-btn {
        width: calc(100% - 20px);
        padding: 10px 0;
        font-size: 0.85em;
        min-width: unset;
    }

    .overlay-btn {
        padding: 10px 12px;
        font-size: 1.3em;
    }
    #prev-btn {
        left: 5px; /* Mobile: Keep closer to edge */
    }
    #next-btn {
        right: 5px; /* Mobile: Keep closer to edge */
    }

    .photostory-navigation {
        padding: 8px;
        border-top: none;
    }

    /* Updated CSS Custom Properties for mobile height adjustments */
    :root {
        --header-height-mobile: 60px;
        --top-ad-height-mobile: 100px;
        --description-height-mobile: 40px;
        --ad-box-height-mobile: 180px;
        --newsletter-box-height-mobile: 80px;
        --nav-height: 40px;
    }
    .photostory-header { height: var(--header-height-mobile); }
    .top-ad-box { min-height: var(--top-ad-height-mobile); }
    .slide-description { min-height: var(--description-height-mobile); }
    .ad-box { min-height: var(--ad-box-height-mobile); }
    .newsletter-box { min-height: var(--newsletter-box-height-mobile); }
    .photostory-navigation { height: var(--nav-height); }
}

@media screen and (max-width: 1600px) {
}

@media only screen and (min-width:1300px) and (max-width:1440px) {

}
@media screen and (min-width: 1361px) and (max-width: 1366px) {

}
@media screen and (min-width: 1431px) and (max-width: 1440px) {}

@media (max-width: 1280px){}
@media screen and (min-width: 1000px) and (max-width: 1024px){}

@media screen and (min-width: 0) and (max-width: 1023px){
    .event-details-content .button-part .social-icon{
        margin-left:0;
        margin-top:15px;
    }
}
@media only screen and (min-device-width:800px) and (max-device-width:820px){
    
    
    .photostory-container{
        
        margin-top:92px;
    }
}
@media only screen and (min-device-width:768px) and (max-device-width:991px){
      .photostory-container{
        
        margin-top:92px;
    }
    
}
@media screen and (min-width: 430px) and (max-width: 432px){} 
 @media screen and (min-width: 412px) and (max-width: 415px){} 
  @media screen and (min-width: 540px) and (max-width: 543px){} 
  @media screen and (min-width: 320px) and (max-width: 325px){}


