﻿main {
    overflow: hidden;
}

.gallery_container {
    margin: 10px 3% auto 3%;
    text-align: center;
}

.tile {
    border: 1px solid lightgrey;
    display: inline-block;
    margin: 5px;
    text-align: left;
}

.image {
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.tile-helper {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    overflow: hidden;
}

.overlay {
    background-color: black;
    opacity: 0;
    width: 100%;
    position: relative;
    cursor: pointer;
}

.overlay:hover {
    opacity: 0.8;
}

.tile-caption {
    bottom: 0;
    position: absolute;
    text-align: center;
    word-wrap: break-word;
    width: 100%;
    color: white;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

    .tile-caption label {
        width: 100%;
        font-size: 1vw;
        margin-bottom: 0;
        cursor: pointer;
    }

.animate {
    transition: all .35s ease-out;
    -moz-transition: all .35s ease-out;
    -webkit-transition: all .35s ease-out;
    -o-transition: all .35s ease-out;
}

.overlay:hover > .tile-caption {
    bottom: 30%;
}

.inner-triangle {
    border-left: 20px solid #049cdb;
    border-right: 20px solid transparent;
    border-bottom: 20px solid transparent;
    height: 0;
    width: 0;
    position: absolute;
    left: 0;
}

#gridSlider, #gridSlider-affix {
    position: absolute;
    float: right;
    right: 8%;
    margin-bottom: 60px;
}

    #gridSlider .slider-track, #gridSlider-affix .slider-track {
        background: #6c757d;
        background-image: none;
        border-radius: 4px;
        height: 8px;
    }

    #gridSlider .slider-handle, #gridSlider-affix .slider-handle {
        background: #005a9c;
        border: 2px solid #ffffff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    }

    #gridSlider .slider-selection, #gridSlider-affix .slider-selection {
        background: #005a9c;
        border-radius: 4px;
    }


.grid-size-panel {
    display: inline-block;
    width: 100%;
    height: auto;
    background-color: transparent;
    padding-top: 10px;
    padding-bottom: 10px;
    position: absolute;
    margin-top: -45px;
    background-color: transparent;
}

@media (max-width: 750px) {
    .grid-size-panel {
        position: relative;
        margin-top: 0;
        background-color: white;
        height: 40px;
    }
}

.grid-loading-circle {
    margin-left: 50%;
    margin-top: 15px;
}

.no-results {
    font-size: 1.17em;
    margin: 1em 0;
    font-weight: bold;
}

/* Video indicator overlay */
.video-indicator {
    display: none;
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    z-index: 5;
    pointer-events: none;
    align-items: center;
    gap: 8px;
}

.video-indicator.visible {
    display: flex;
}

.video-indicator .play-icon {
    width: 0;
    height: 0;
    border-left: 12px solid white;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    margin-right: 2px;
}

.video-indicator .duration {
    font-family: 'Roboto Regular', sans-serif;
    letter-spacing: 0.5px;
}

/* Larger indicator for bigger tiles */
@media (min-width: 600px) {
    .video-indicator {
        padding: 8px 14px;
        font-size: 15px;
        bottom: 12px;
        left: 12px;
    }

    .video-indicator .play-icon {
        border-left-width: 14px;
        border-top-width: 8px;
        border-bottom-width: 8px;
    }
}