﻿
.flex-grow-col {
    flex: 1 1 auto; /* Take remaining space */
    min-width: 335px;
}

/* Extra small devices (portrait phones, less than 576px) */
@media (min-width: 320px) and (max-width: 569px) and (orientation: portrait) {
    .gallery-container {
        width: auto;
        max-height: 250px;
    }

    .gallery-main-image {
        width: auto;
        height: 250px;
        max-height: 250px;
    }

    .thumbnail-fixed {
        width: 111px;
        height: auto;
        flex: 0 0 auto;
    }

    .thumbnail-image {
        width: auto;
        height: 80px;
        max-height: 80px;
    }
}

/* Small devices (landscape phones, 576px and up)*/
@media (min-width: 570px) and (max-width: 767.98px) {
    .gallery-container {
        width: auto;
        max-height: 420px;
    }

    .gallery-main-image {
        width: auto;
        height: 420px;
        max-height: 420px;
    }

    .thumbnail-fixed {
        width: 187px;
        height: auto;
        flex: 0 0 auto;
    }

    .thumbnail-image {
        width: auto;
        height: 137px;
        max-height: 137px;
    }
}

/* Medium devices (tablets, 768px and up)*/
@media (min-width: 768px) and (max-width: 991.98px) {
    .gallery-container {
        width: auto;
        height: 540px;
        max-height: 540px;
    }

    .gallery-main-image {
        width: auto;
        height: 540px;
        max-height: 540px;
    }

    .thumbnail-fixed {
        width: 240px;
        height: auto;
        flex: 0 0 auto;
    }

    .thumbnail-image {
        width: auto;
        height: 177px;
        max-height: 177px;
    }
}

/* Large devices (desktops, 992px and up)*/
@media (min-width: 992px) and (max-width: 1280px) {
    .gallery-container {
        width: auto;
        height: 575px;
        max-height: 575px;
    }

    .gallery-main-image {
        width: auto;
        height: 575px;
        max-height: 575px;
    }

    .thumbnail-fixed {
        width: 255px;
        height: auto;
        flex: 0 0 auto;
    }

    .thumbnail-image {
        width: auto;
        height: 189px;
        max-height: 189px;
    }
}

/* Extra large devices (large desktops, 1200px and up)*/
@media (min-width: 1280px) {
    .gallery-container {
        width: auto;
        height: 575px;
        max-height: 575px;
    }

    .gallery-main-image {
        width: auto;
        height: 575px;
        max-height: 575px;
    }

    .thumbnail-fixed {
        width: 255px;
        height: auto;
        flex: 0 0 auto;
    }

    .thumbnail-image {
        width: auto;
        height: 189px;
        max-height: 189px;
    }
}
