

#main {
    /* display: flex; */
    /* flex-direction: row; */
    /* justify-content: space-between; */
    /* justify-content: center; */
    /* align-items: center; */
    /* gap: 2rem; */
    color: #1C5D9F;
}

#middle {
    /* width: calc(100% - 255px); */
    flex-shrink: 1;
    flex-basis: auto;
}

#right {
    font-size: 0.9em;
    width: 255px;
    box-sizing: content-box;
    flex-shrink: 0;
}

.container {
    width: 950px;
    max-width: 100%;
}
.page-hu .container, .page-en .container, .page-de .container, .page-ru .container {
    width: 1050px;
}

#anim_ember video {
    width: 320px;
    height: 525px;
    margin-top: var(--side-margin-up);
    margin-left: -2rem;
    margin-bottom: -2rem;
}
@media (max-width: 1200px) {
    #anim_ember video {
        max-width: calc(100% + 4rem);
        margin-top: var(--side-margin-up);
        margin-left: -2rem;
    }
}

.first-page-grid {
    display: grid;
    grid-template-columns: 220px 1fr 256px;
    align-items: center;
    gap: 0;
    margin-top: 2.5rem;
    --side-margin-up: -14rem;
}
.first-page-grid .logo { margin-top: -2rem; }
.first-page-grid .recommends {
    /* margin-top: calc(var(--side-margin-up) / 1.5); */
}
.first-page-grid .small-gallery {
    /* margin-top: calc(var(--side-margin-up) / 1.5); */
}

.page-hu #main, .page-en #main, .page-de #main, .page-ru #main {
    gap: 0rem;
}

.navbar-dr-ruben {
    /*background-image: url("images/menu_bar.png") !important;  */
    /*background-size:contain;*/
    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#518bb8+0,518bb8+100&0.25+0,1+38,1+62,0.25+100 */
    background: -moz-linear-gradient(left, rgba(81, 139, 184, 0.25) 0%, rgba(81, 139, 184, 1) 38%, rgba(81, 139, 184, 1) 62%, rgba(81, 139, 184, 0.25) 100%);
    /* FF3.6-15 */
    background: -webkit-linear-gradient(left, rgba(81, 139, 184, 0.25) 0%, rgba(81, 139, 184, 1) 38%, rgba(81, 139, 184, 1) 62%, rgba(81, 139, 184, 0.25) 100%);
    /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to right, rgba(81, 139, 184, 0.25) 0%, rgba(81, 139, 184, 1) 38%, rgba(81, 139, 184, 1) 62%, rgba(81, 139, 184, 0.25) 100%);
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#40518bb8', endColorstr='#40518bb8', GradientType=1);
    /* IE6-9 */
}

.navbar-dr-ruben .container {
    width: auto;
}

.navbar-dr-ruben .container-fluid {
    padding-left: 0px;
}

.navbar-dr-ruben .navbar-collapse {
    padding-left: 0px;
}

.navbar-nav {
    text-align: center;
}
.navbar-nav>li>a {
    color: white !important;
}
.navbar-nav li {
    white-space: nowrap;
    text-transform: uppercase;
    vertical-align: middle;
    font-size: 16px;
    line-break: strict;
    text-decoration: none;
    /*font-family: Oswald-Light;*/
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    transition: all .25s;
    -moz-transition: all .25s;
    -webkit-transition: all .25s;
    -o-transition: all .25s;
}

@media (min-width: 700px) {
    .navbar-nav {
        margin: 0 auto;
        padding: 0.8rem 1.6rem;
        width: 100%;
        max-width: 1170px;
    }

    .navbar-nav>li {
        display: inline-block;
        float: none;
    }
}

.navbar li a {
    line-height: 38px;
}

.dropdown {
    position: relative;
}

.dropdown>a {
    padding-right: 25px !important;
}

.dropdown::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    position: absolute;
    right: 0.5em;
    top: 50%;
    transform: translateY(-50%);
    transform-origin: center center;
    border-top: 5px solid white;
    border-right: 5px solid transparent;
    border-bottom: 0;
    border-left: 5px solid transparent;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.dropdown.open::after {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-menu {
    min-width: 64px;
    padding-top: 0px;
    padding-bottom: 0px;
    opacity: 1;
    background-color: rgba(81, 139, 184, 1);
    max-height: 500px;
}

.dropdown-menu>li>a {
    color: white !important;
    padding: 10px 15px;
}

.navbar-nav .open .dropdown-menu>li>a {
    font-weight: 300;
}

.navbar-default .navbar-nav .open .dropdown-menu>.active>a,
.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,
.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover {
    background: #b2549c;
}

.navbar-default .navbar-nav>.open>a,
.navbar-default .navbar-nav>.open>a:focus,
.navbar-default .navbar-nav>.open>a:hover {
    background-color: #b472b4;
}

@media only screen and (max-width: 1050px) {
    .navbar-default .navbar-nav br {
        display: none !important;
    }
}

.nav li a {
    padding: 2px 16px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 4px;
}

.language-selector {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.language-selector .flag-link {
    display: inline-block;
    padding: 5px 2px;
    width: auto;
    line-height: 27px;
}

.language-selector .flag-link.active {
    opacity: 1;
}

.language-selector .flag-link .flag {
    margin: 0;
}

.navbar-default .navbar-nav>.active>a {
    background-color: #b472b4;
}

.navbar-default .navbar-nav:hover>.active>a {
    /* background-color: rgb(180, 114, 180, 0.5); */
}

.navbar-default .navbar-nav a:hover {
    background-color: #b472b4 !important;
}

.navbar-default .navbar-nav :not(.active) a {
    transition: all 0.2s ease;
}

.nowrap {
    white-space: nowrap;
}

html,
body {
    font-family: 'Raleway', sans-serif;
    margin: 0;
    padding: 0;
    font-size: 16px;
}

input {
    border: 1px #AAA solid;
    padding: 5px 3%;
}

.h1,
.h2,
.h3,
.h4,
h1,
h2,
h3,
h4 {
    margin-bottom: 0.75em;
    font-family: Oswald;
    align-self: center;
}

h1 {
    align-self: center;
    font-size: 35px;
    font-family: Oswald;
    padding-top: 0px;
    margin-top: 0px;
    margin-left: 53px;
    text-transform: capitalize;
    
}

h1:before {
    content: url('images/POTTY.png');
    position: relative;
    top: 13px;
    margin-right: 7px;
    margin-left: -53px;
}

p {
    margin-bottom: 1em;
}

a {
    color: #1C5D9F
}

@media (min-width: 768px) {
    #contact-foot .slogen {
        /* padding-left: 6.75rem; */
    }
    .page-hu .content, .page-en .content, .page-de .content, .page-ru .content {
        padding-left: 0rem;
        margin-left: 0rem;
    }
}

@media (min-width: 1065px) {
    h1 {
        margin-left: 0px;
    }
}

.container p:not(.text-no-auto-justify p) {
    text-align: justify;
}
/* .container .imageAndCaption.alignr + p {
    text-align: left;
} */

.featured-button-container {
    margin: 1em auto;
    font-size: 24px;
}
.featured-button {
    display: flex;
    justify-content: center;
}
.featured-button:hover {
    text-decoration: none;
}

.featured-button-inner {
    position: relative;
    margin: 1px;
    box-shadow: inset 0px -6px 24px 3px #004f99;
    box-shadow: inset -7px -11px 32px -4px #004f99;
    background: linear-gradient(to bottom, #c9eaf8 0%, #004f99 100%);
    background: linear-gradient(to bottom, #19a8e6 0%, #004f99 100%);
    background-color: #004f99;
    border-radius: 2em;
    display: inline-block;
    cursor: pointer;
    padding: 0.25em 1.5em 0.35em 1.5em;
    padding-right: 2em;
    color: rgb(255, 255, 255);
    font-size: 28px;
    font-family: 'Oswald';
    white-space: nowrap;
    letter-spacing: 2px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: 0px 1px 0px #263666;
    text-shadow: 0px 0px 3px rgba(0, 79, 153, 0.8);
    transition: all 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    overflow: hidden;
    z-index: 1;
}

.featured-button-inner > * {
    position: relative;
    z-index: 2;
}

.featured-button-inner:hover {
    box-shadow: inset 0px -6px 24px 3px #99006b;
    box-shadow: inset 0px -8px 32px -4px #99006b;
    background: linear-gradient(to bottom, #fbcdec 0%, #99006b 100%);
    background-color: #99006b;
    color: white;
    text-shadow: 0px 0px 3px rgba(153, 0, 107, 0.8);
    text-decoration: none;
    transition: all 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.featured-button-inner::before {
    content: "";
    position: absolute;
    right: 0.75em;
    top: 32.5%;
    transform: translateY(-50%);
    border-top: 0.38em solid transparent;
    border-bottom: 0.38em solid transparent;
    border-left: 0.65em solid #ffffff;
    font-size: inherit;
    width: 0;
    height: 0;
    animation-name: pulse_bordercolor;
    animation-duration: 1300ms;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    z-index: 2;
}

.featured-button-inner::after {
    content: "";
    position: absolute;
    top: 0;
    left: 16px;
    bottom: 0;
    width: 55%;
    height: 30%;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    opacity: 0.8;
    z-index: 1;
    filter: blur(5px);
    transition: all 0.4s ease;
}


.featured-button-inner:hover::after {
    /* left: 25%; */
    width: 100%;
    filter: blur(10px);
}

.featured-button-inner:active {
    position: relative;
    top: 1px;
}

@keyframes rotateLight {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse_bordercolor {
    0% {
        border-left-color: rgba(255, 255, 255, 1);
        transform: scale(1.1);
    }

    40% {
        border-left-color: rgba(49, 202, 164, 1);
        transform: scale(1);
    }

    80% {
        border-left-color: rgba(255, 255, 255, 1);
        transform: scale(1.1);
    }

    100% {
        border-left-color: rgba(255, 255, 255, 1);
        transform: scale(1.1);
    }
}

@keyframes pulse_color {
    0% {
        color: rgba(203, 222, 245, 1);
    }

    40% {
        color: rgba(255, 190, 243, 1);
    }

    /*50% {  color: rgba(255,175,223,1); }*/
    80% {
        color: rgba(203, 222, 245, 1);
    }

    100% {
        color: rgba(203, 222, 245, 1);
    }
}

.alignc {
    text-align: center;
}

.navbar-dr-ruben {
    background-position: center;
    background-size: 150% 100%;
}

.front_button {
    width: 258px;
    height: auto;
    max-width: 100%;
}

.selfheal {
    height: 385px !important;
    padding-bottom: 0px !important;
    background-image: url("images/menu_bar3.png"), url("images/3.png") !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    background-size: 100% auto !important;
}

.flag {
    width: 32px;
    height: 32px;
    background: url(css/flags/flags.png) no-repeat;
    opacity: 0.8;
    margin: 0px 0px;
    transform: scale(0.8);
}

.flag:hover {
    opacity: 1;
}

.flag_activ {
    opacity: 1;
}

.flag.flag-de {
    background-position: -32px 0
}

.flag.flag-en,
.flag.flag-gb {
    background-position: -64px 0
}

.flag.flag-hu {
    background-position: 0 -32px
}

.flag.flag-ru {
    background-position: -32px -32px
}

.auth-box {
    width: 300px;
    margin: auto;
}

.auth-box table {
    width: 100%;
}

.auth-box input {
    width: 100%;
}

.raquo {
    font-size: 1.25em;
    line-height: 0;
    margin-left: 0.2em 0;
}

.hovercolorize {
    position: relative;
    display: block;
    overflow: hidden;
    width: 258px;
    height: 188px;
    margin: auto;
}

.hovercolorize-text {
    z-index: 14;
    position: absolute;
    bottom: 2px;
    color: white;
    text-transform: uppercase;
    font-size: 3.5rem;
    line-height: 1;
    display: block;
    margin: -4px 0px -2px 0px;
    font-weight: bold;
    font-family: 'Oswald';
    letter-spacing: 4px;
    opacity: 0.75;
    transition: opacity 0.25s ease-in-out;
}
.hovercolorize.pink .hovercolorize-text {
    bottom: unset;
    top: 0;
}
.lang-de .hovercolorize-text {
    font-size: 2.7rem;
}
.lang-ru .hovercolorize-text {
    font-size: 2.55rem;
}

.hovercolorize:hover .hovercolorize-text {
    opacity: 0;
}

.hovercolorize .more {
    position: absolute;
    top: 50%;
    left: 50%;
    width: fit-content;
    height: fit-content;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    min-width: 150px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 15px 10px 10px;
    z-index: 2;
    transition: background-color 0.25s ease-in-out, opacity 0.25s ease-in-out, transform 0.25s ease-in-out, margin-top 0.25s ease-in-out;
    box-shadow: 3px 3px 25px rgba(0, 0, 0, 0.5);
    transform: translate(-50%, -50%);
    transform-origin: center;
    opacity: 0;
    border-radius: 2em;
    margin-top: 0.5rem;
}
.hovercolorize .more .raquo {
    margin-left: 0.5rem;
    margin-right: -0.5em;
    font-weight: 500;
    font-size: 1.7rem;
    position: relative;
    vertical-align: -2px;
}
.hovercolorize:hover .more {
    opacity: 1;
    transform: translate(-50%, -50%);
    transform-origin: center;
    margin-top: 0rem;
}

.hovercolorize:before {
    content: "";
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(46 150 220 / 50%);
    z-index: 1;
    transition: background-color 0.2s ease-in-out;
}
.hovercolorize.pink:before {
    background-color: rgb(229 63 149 / 31%);
    background-color: rgb(255 61 161 / 31%);
}
.hovercolorize img {
    filter: brightness(1.25) grayscale(1);
    transition: filter 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4); 
}

.hovercolorize:hover:before {
    background-color: rgba(255, 255, 255, 0);
}
.hovercolorize:hover img {
    filter: brightness(1) grayscale(0);
    /* box-shadow: 2px 2px 7px rgba(0, 0, 0, 0.4); */
}

.imageAndCaption {
	width: 45%;
	max-width: 400px;
	font-size: 80%;
    margin-top: 0.25rem;
}
@media (max-width: 768px) {
	.imageAndCaption {
	    width: 41%;
	}
}
.imageAndCaption img {
    display: block;
    width: 99.5%;
    height: auto!important;
    /* min-height: 150px; */
    margin: auto;
}
.imageAndCaption.alignl {
    float: left;
    margin-right: 2em;
    margin-bottom: 1em;
}
.imageAndCaption.alignr {
    float: right;
    margin-left: 2em;
    margin-bottom: 1em;
}

/* Active Image Fade Effect */
.activeimage-container {
    position: relative;
    display: inline-block;
}

.activeimage-overlay {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    pointer-events: none; /* Ensure clicks go through to the link */
}

.activeimage-container:hover .activeimage-overlay {
    opacity: 1;
}

.recommends .hovercolorize, .recommends .hovercolorize img {
    width: 256px;
    height: 220px;
    margin-bottom: 1.5rem;
}
.recommends .hovercolorize img {
    object-fit: cover;
    margin-bottom: 0;
}

#elektropunkturaa {
    background-image: url("images/elektropunktura_inaktiv.png");
}

#elektropunkturaa:hover {
    background-image: url("images/elektropunktura_aktiv.png");
}

#manualterapiaa {
    background-image: url("images/manualterapia_inaktiv.png");
}

#manualterapiaa:hover {
    background-image: url("images/manualterapia_aktiv.png");
}

#video {
    background-image: url("images/video_inaktiv.png");
    background-size: 100%;
}

#video:hover {
    background-image: url("images/video_aktiv.png");
}

#orvosolhato {
    color: #1C5D9F;
    text-align: center;
    font-weight: bolder;
    text-transform: uppercase;
    font-size: 17pt;
    line-break: strict;
    padding: 5px;
    text-decoration: none;
    line-height: initial;
    font-family: 'Oswald';
}

#legyen_egeszsegesebb,
.slogen {
    color: #1C5D9F;
    /*text-align: center;*/
    font-weight: bolder;
    text-transform: uppercase;
    font-size: 17pt;
    line-break: strict;
    /*padding: 5px;*/
    /*padding: 15px 0;*/
    margin: 1em 0;
    text-decoration: none;
    line-height: initial;
    font-family: 'Oswald';
}

body.page-fooldal #legyen_egeszsegesebb,
body.page-fooldal .slogen {
    text-align: center;
}

.page-kezelheto_betegsegek table td {
    width: 50%;
    padding-right: 4%;
}

#contact-foot {
    padding: 0 15px;
    padding-top: 1px;
    color: #1C5D9F;
    text-align: center;
    font-family: Oswald;
    align-self: center;
    font-size: 24px;
    clear: both;
}

#contact-foot p {
    margin-left: 10%;
    margin-right: 10%;
    text-align: center;
}

#contact-foot .slogen {
    text-align: left;
}

#contact-foot a {
    /* white-space: nowrap; */
}

#contact-foot hr {
    border: 0;
    width: 100%;
    height: 2px;
    background-image: linear-gradient(to right, rgba(27, 104, 181, 0), rgba(27, 104, 181, 0.75), rgba(27, 104, 181, 0));
    margin: 5% auto;
}

#image-wave {
    width: 100%;
    margin-top: 2rem;
}

/* start */

.navbar-default .navbar-nav .open .dropdown-menu>.active>a,
.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover,
.navbar-default .navbar-nav>.open>a,
.navbar-default .navbar-nav>.open>a:hover {
    background-image: none !important;
    /*background-color: #b472b4;*/
    background-color: #cf60b0;
}

@media (min-width: 768px)
{
	
    .container-fluid>.navbar-collapse,
    .container-fluid>.navbar-header,
    .container>.navbar-collapse,
    .container>.navbar-header {
        margin-right: 0 !important;
    }
}

.navbar-header-menu {
    display: none;
}

.referenciak-tablazat td {
    vertical-align: top;
}
.referenciak-tablazat td img {
    width: 165px;
    height: 220px;
    object-fit: cover;
}

.kapcsolat-col-gap-col img, .kapcsolat-col-gap-col iframe {
    width: 100%;
    height: 100%;
}
.kapcsolat-col-gap-col tr {
    display: grid;
    grid-template-columns: 1fr 1rem 1fr;
}
.kapcsolat-col-gap-col p {
    margin: 0;
}

@media only screen and (max-width: 990px) {

    .first-page-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto auto auto;
        grid-template-areas:
            "logo"
            "anim_ember"
            "middle-content"
            "recommends"
            "small-gallery"
            "foot";
        --side-margin-up: 0;
    }
    .first-page-grid .logo { grid-area: logo; }
    .first-page-grid .middle-content { grid-area: middle-content; }
    .first-page-grid #anim_ember { grid-area: anim_ember; margin-top: 0; }
    .first-page-grid .recommends { grid-area: recommends; }
    .first-page-grid .small-gallery { grid-area: small-gallery; }
    
    .first-page-grid #anim_ember video { margin-top: 0; max-width: 250px; margin-left: auto; margin-right: auto; }

    #right {
        margin: auto;
    }

    #anim_ember {
        /*display:none;*/
        text-align: center;
    }

    .col-md-3.alignc {
        clear: both;
    }

    .malignc {
        text-align: center;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    img {
        max-width: 100%;
        width: 100%;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .container p:not(.alignc) {
        text-align: left;
    }

    table.mobilblock, .tables-mobilblock table,
    table.mobilblock tbody, .tables-mobilblock table tbody,
    table.mobilblock tr, .tables-mobilblock table tr,
    table.mobilblock td, .tables-mobilblock table td {
        display: block;
        width: 100% !important;
        height: auto;
        overflow: auto;
    }
    table.mobilblock br, .tables-mobilblock table br {
        display: none;
    }

    .navbar-nav {
        padding: 1em 2em;
    } 

    .navbar-nav li a {
        padding-top: 0.5em;
        padding-bottom: 0.5em;
    }
    .navbar-nav .open .dropdown-menu .dropdown-header, .navbar-nav .open .dropdown-menu>li>a {
        padding-top: 0.5em;
        padding-bottom: 0.5em;
    }

    .navbar-dr-ruben {
        background: #518bb8;
    }

    .navbar-header {
        position: relative;
    }

    .navbar-header-menu {
        display: block;
        position: absolute;
        width: 50%;
        top: 13px;
        right: 15px;
        font-size: 16px;
        letter-spacing: 1px;
        text-transform: uppercase;
        /*font-family: Oswald-Light;*/
        font-family: 'Oswald', sans-serif;
        font-weight: 300;
    }

    .navbar-header-menu a {
        color: #23538a;
        color: #FFF;
        display: inline-block;
        vertical-align: middle;
        padding: 4px 0;
        height: 38px;
    }

    .navbar-dr-ruben {
        background-position: center;
        background-size: 300% 100%;
    }

    .navbar-toggle {
        color: #23538a;
        color: #FFF;
        float: none;
        width: 100px;
        margin-left: 14px;
        border: 0px;
        font-family: 'Oswald', sans-serif;
    }

    .navbar-default .navbar-toggle .icon-bar {
        height: 3px;
        background-color: #4d75a3;
        background-color: #FFF;
    }

    /*.navbar-default .navbar-toggle,*/
    .navbar-default .navbar-toggle:hover {
        /*background-color: rgba(255, 255, 255, 0.7);*/
        background-color: transparent;
    }

    .featured-button-inner {
        padding: 0.4em 1.75em 0.5em 1em;
        font-size: 22px;
    }

    .lang-ru .featured-button-inner {
        font-size: 21px;
    }

    .sr-only {
        width: auto;
        ;
        height: auto;
        clip: auto;
        margin: -4px -4px 0px -4px;
        font-size: 18px;
    }

    .navbar li a {
        line-height: 20px;
        letter-spacing: 1.3px;
    }

    .page-kezelheto_betegsegek .col-md-9 table td {
        width: 100%;
        padding-right: 0%;
    }

    .page-kapcsolat .col-md-9 img {
        float: none !important;
    }

    .flags-toggle {
        position: absolute;
        width: max-content;
        right: 0;
    }

    .flags-toggle a {
        display: inline-block;
        padding: 0px 7px 4px 7px;
        margin-bottom: -1px;
    }

    .flags-toggle .active {
        border-bottom: 2px #FFF solid;
    }

    nav .language-selector {
        display: none;
    }

    #contact-foot .slogen {
        text-align: center;
    }
}

@media (max-width: 430px) {

    
}

@media (max-width: 419px) {

    
}

@media (max-width: 408px) {

    
}

@media (max-width: 397px) {

    
}

@media (max-width: 386px) {

    
}

@media (max-width: 375px) {

    
}

@media (max-width: 364px) {

    
}

@media (max-width: 353px) {

    
}

@media (max-width: 342px) {

    
}

@media (max-width: 330px) {

    
}

/* Small gallery layout */
.small-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-bottom: 15px;
}

.small-gallery > a {
    display: block;
    width: 100%;
    aspect-ratio: 1920/1440;
    overflow: hidden;
}

.small-gallery > a:first-child {
    grid-column: 1 / -1;
    width: 100%;
    aspect-ratio: 2442/1100;
}

.small-gallery > a img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: all .35s;
}

.small-gallery a:first-child:hover img {
    transform: scale(1.05);
}
.small-gallery a:hover img {
    transform: scale(1.1);
}

/* Large gallery layout */
.large-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-bottom: 15px;
}

.large-gallery > a {
    display: block;
    width: 100%;
    aspect-ratio: 1920/1440;
    overflow: hidden;
}

.large-gallery > a:first-child {
    grid-column: 1 / -1;
    width: 100%;
    aspect-ratio: 800/360;
}

.large-gallery > a img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: all .35s;
}

.large-gallery a:first-child:hover img {
    transform: scale(1.025);
}
.large-gallery a:hover img {
    transform: scale(1.05);
}