html,
body {
    height: 100%;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap > .container {
    padding: 70px 15px 20px;
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* Main Carousel Container */
.carousel-container {
    position: relative;
    width: 100%;
    height: 650px; /* Adjust this to the height you want for your video carousel */
    overflow: hidden;
    margin-top: 60px; /* Space for the thumbnail carousel */
}

/* Carousel: Flexbox to arrange carousel items horizontally */
.carousel {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

/* Carousel Items: Ensure each item takes full width */
.carousel a {
    flex: 0 0 100%;
    height: 100%;
}

/* Carousel Image */
.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure images cover the whole space without distortion */
}

/* Thumbnails Section: Position thumbnails at the top */
.carousel-thumbnails {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 15;  /* Ensure thumbnails stay above the carousel */
    margin-bottom: 10px; /* Space between thumbnails and carousel */
}

/* Thumbnail Images */
.thumbnail {
    width: 80px; /* Adjust as needed */
    height: auto;
    margin: 0 5px;
    cursor: pointer;
    transition: opacity 0.3s;
}

/* Thumbnail Hover Effect */
.thumbnail:hover {
    opacity: 0.7;
}

/* Navigation Arrows: Position them at the center of the carousel */
.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

/* Style for Previous and Next arrows */
.prev, .next {
    font-size: 30px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    cursor: pointer;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Center carousel items */
.carousel-item {
    display: flex;          /* Use flexbox to center content */
    justify-content: center; /* Horizontally center */
    align-items: center;    /* Vertically center */
    width: 100%;
    height: 100%;
    display: none;          /* Hide all carousel items by default */
}

/* Make the video responsive and fit within the container */
.carousel-item video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;    /* Ensure the video scales to fit within the container */
}