
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
}
#loader {
    display: block;
    position: relative;
    left: 50%;
    top: 50%;
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #3498db;

    -webkit-animation: spin 2s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
    animation: spin 2s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */

    z-index: 1002;
}

    #loader:before {
        content: "";
        position: absolute;
        top: 5px;
        left: 5px;
        right: 5px;
        bottom: 5px;
        border-radius: 50%;
        border: 3px solid transparent;
        border-top-color: #e74c3c;

        -webkit-animation: spin 3s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
        animation: spin 3s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */
    }

    #loader:after {
        content: "";
        position: absolute;
        top: 15px;
        left: 15px;
        right: 15px;
        bottom: 15px;
        border-radius: 50%;
        border: 3px solid transparent;
        border-top-color: #f9c922;

        -webkit-animation: spin 1.5s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
          animation: spin 1.5s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */
    }

    @-webkit-keyframes spin {
        0%   { 
            -webkit-transform: rotate(0deg);  /* Chrome, Opera 15+, Safari 3.1+ */
            -ms-transform: rotate(0deg);  /* IE 9 */
            transform: rotate(0deg);  /* Firefox 16+, IE 10+, Opera */
        }
        100% {
            -webkit-transform: rotate(360deg);  /* Chrome, Opera 15+, Safari 3.1+ */
            -ms-transform: rotate(360deg);  /* IE 9 */
            transform: rotate(360deg);  /* Firefox 16+, IE 10+, Opera */
        }
    }
    @keyframes spin {
        0%   { 
            -webkit-transform: rotate(0deg);  /* Chrome, Opera 15+, Safari 3.1+ */
            -ms-transform: rotate(0deg);  /* IE 9 */
            transform: rotate(0deg);  /* Firefox 16+, IE 10+, Opera */
        }
        100% {
            -webkit-transform: rotate(360deg);  /* Chrome, Opera 15+, Safari 3.1+ */
            -ms-transform: rotate(360deg);  /* IE 9 */
            transform: rotate(360deg);  /* Firefox 16+, IE 10+, Opera */
        }
    }

    #loader-wrapper .loader-section {
        position: fixed;
        top: 0;
        width: 51%;
        height: 100%;
        background: #222222;
        z-index: 1001;
        -webkit-transform: translateX(0);  /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: translateX(0);  /* IE 9 */
        transform: translateX(0);  /* Firefox 16+, IE 10+, Opera */
    }

    #loader-wrapper .loader-section.section-left {
        left: 0;
    }

    #loader-wrapper .loader-section.section-right {
        right: 0;
    }

    /* Loaded */
    .loaded #loader-wrapper .loader-section.section-left {
        -webkit-transform: translateX(-100%);  /* Chrome, Opera 15+, Safari 3.1+ */
            -ms-transform: translateX(-100%);  /* IE 9 */
                transform: translateX(-100%);  /* Firefox 16+, IE 10+, Opera */

        -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);  
                transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
    }

    .loaded #loader-wrapper .loader-section.section-right {
        -webkit-transform: translateX(100%);  /* Chrome, Opera 15+, Safari 3.1+ */
            -ms-transform: translateX(100%);  /* IE 9 */
                transform: translateX(100%);  /* Firefox 16+, IE 10+, Opera */

-webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);  
        transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
    }
    
    .loaded #loader {
        opacity: 0;
        -webkit-transition: all 0.3s ease-out;  
                transition: all 0.3s ease-out;
    }
    .loaded #loader-wrapper {
        visibility: hidden;

        -webkit-transform: translateY(-100%);  /* Chrome, Opera 15+, Safari 3.1+ */
            -ms-transform: translateY(-100%);  /* IE 9 */
                transform: translateY(-100%);  /* Firefox 16+, IE 10+, Opera */

        -webkit-transition: all 0.3s 1s ease-out;  
                transition: all 0.3s 1s ease-out;
    }

/* General */

* {  box-sizing: border-box; }
html, body { overflow-x: hidden; }
body { 
    font-family: 'Kumbh Sans', sans-serif;
    font-size: 18px;
    background-image: url('/img/body-background.jpg');
    background-size: 50%;
    color: #999;
    margin: 0;
}
a { color: #fff; text-decoration: none; }
a:hover {  color: #115eab; }
button { cursor: pointer; }
a, button { transition: all 0.3s ease; }
ul {
    margin: 0;
    padding: 0;
}

h2 {
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 30px;
}

p {
    line-height: 1.8;
    margin-bottom: 50px;
}

span, footer {  line-height: 1.8; }

.tm-btn {
    display: inline-block;
    border: 1px solid #666;
    background-color: transparent;
    color: #999;
    padding: 14px 40px;
    font-size: 20px;
}

.tm-btn:hover {
    color: #115eab;
    border-color: #115eab;
}

.tm-text-small { font-size: 0.9em; }
.tm-text-center { text-align: center; }
.tm-text-right { text-align: right; }
.tm-text-primary { color: #115eab; }
.tm-text-secondary { color: #9999CC; }
.tm-text-link { color: #999; }
.tm-text-link:hover { color: #99CC99; }
.tm-relative { position: relative; }

.tm-hr {
    border-color: #555;
    max-width: 340px;
    width: 100%;    
}

.tm-mr {
    margin-right: 0;
    margin-left: auto;
}

.tm-ml {
    margin-left: 0;
    margin-right: auto;
}

.tm-my-50 {
    margin-top: 50px;
    margin-bottom: 50px;
}
.tm-mb-20 { margin-bottom: 20px; }
.tm-mb-50 { margin-bottom: 50px; }
.tm-mb-80 { margin-bottom: 80px; }
.tm-mb-130 { margin-bottom: 130px; }
.tm-mb-200 { margin-bottom: 200px; }

/* Layout */
.tm-section { display: flex; }

.tm-section-col {
    flex: 0 0 50%;
    width: 50%;
}

.tm-content {
    padding: 180px 60px 70px 100px;
    box-sizing: border-box;
}

.tm-content-small { padding: 190px 120px 70px; }
.tm-content-small-top { padding-top: 130px; }

.tm-row {
    display: flex;
    margin-left: -25px;
    margin-left: -25px;
}

.tm-col {
    flex: 0 0 50%;
    width: 50%;
    padding: 25px;
    box-sizing: border-box;
}

/* Brand */
.tm-brand {
    position: fixed;
    bottom: 80px;
    right: 70px;
    width: 300px;
    height: 240px;
    margin-top: 0;
    margin-bottom: 0;
    background-color: #333;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.tm-brand-icon { margin-bottom: 25px; }
.tm-brand-text { font-size: 32px; }





#activity-1-price{
    display:none;
}
#activity-2-price{
    display:none;
}
#activity-3-price{
    display:none;
}
#activity-4-price{
    display:none;
}


.non-clickable {
    pointer-events: none;
  }



.high-index{
    z-index:999999999999999999999999999999;
}

.message {
    padding: 10px;
    margin-bottom:-10%;
    border-radius: 5px;
    font-weight: bold;
    display: none;
  }
  
  .success {
    background-color: #4CAF50;
    color: #ffffff;
  }
  
  .error {
    background-color: #f44336;
    color: #ffffff;
  }
  

.box-shadow{
    box-shadow: -16px 16px 16px rgba(0, 0, 0, 1);
}

.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
}

#close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

#lightbox-image {
    width: 100%;
    height: auto;
}


.separation {
    margin-bottom: 50px; /* Set the separation value as needed */
}

.text-align{
    text-align: center;
}

.activity {

    list-style-type: none;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 10px;
  }
  
  .activity:hover {
color: #115eab;
  }


#image-placeholder{
    margin-top:20%;
}


#tooltip {
    display: none;
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ccc;
  }
  
  #tooltip.active {
    display: block;
  }
  
  #tooltip-text p {
    margin: 0;
  }

  ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .ul-horaire {
    margin-left:20%;
    text-align: center;
    color:#3498db;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .ul-horaire li {
    display: flex;
    align-items: center;
  }
  
  .ul-horaire li::before {
    content: '-';
    margin-right: 5px;
  }


/* Style for the form container */
.form-container {
    display: none;
    position: absolute;
    background-color: #c1c1c1;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 1);
    padding: 20px;
    border-radius: 5px;
    margin:auto;
    border: 1px solid #c1c1c1;
    z-index: 9999;
    font-family: Arial, sans-serif;
    width: 60%;
    height:35vh;
    transition: margin-top 0.3s ease-out;
  }
  
  .form-container.visible {
    margin-top: 60px;
  }
  
  .form-container input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ffffff;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.4);
    border-radius: 5px;
  }
  .form-container input:hover{
    margin-left:1px;
  }
  
  .form-container button {
    width: 100%;
    padding: 10px;
    background-color: #115eab;
    color: #000000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .form-container button:hover {
    background-color: #115eab;
  }

  .form-dropdown {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ffffff;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.4);
    border-radius: 5px;
  }
  
  


/* Assuming the iframe is contained within a div with the class "iframe-airbnb" */
.iframe-airbnb {
    width: 95%;
    height: calc(100vh - 40px); /* Adjust 40px to the height of the other content in .cabin-presentation */
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background-color: #fff;
  }

  .cabin-presentation{
    height: 100%;
}
  
  /* Style the iframe itself */
  .iframe-airbnb iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
  }
  
  /* Additional styles to make it look more like Airbnb's UI */
  .iframe-airbnb h1 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
  }
  
  .iframe-airbnb p {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .iframe-airbnb ul {
    list-style: none;
    padding: 0;
  }
  
  .iframe-airbnb ul li {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
  }
  
  .iframe-airbnb img {
    width: 100%;

    height: auto;
    margin-bottom: 20px;
  }
  
  /* Style for the reviews section */
  .iframe-airbnb .reviews {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
  }
  
  .iframe-airbnb .review {
    flex: 0 0 50%;
  }
  
  .iframe-airbnb .review-text {
    font-style: italic;
  }
  
  .iframe-airbnb .review-author {
    margin-top: 5px;
  }
  
  .wood-text{
    color: #115eab;
    text-shadow: 8px 8px 8px rgba(0, 0, 0, 0.7);

  
  }

.wood-text-input {
    color: #115eab;
    box-shadow: 8px 8px 8px rgba(0, 0, 0, 0.7);
    background-color: white;
    border: 2px solid #115eab; 
    border-radius: 20px; 
    padding: 10px 15px; 
    font-size: 16px;
    transition: box-shadow 0.3s; 
    float:left;
    width:100%;
    margin-bottom:2%;
  }
  
  /* Add a nice effect when hovering over the input */
  .wood-text-input:hover {
    box-shadow: 6px 6px 6px rgba(0, 0, 0, 0.5);
  }
  
  /* Add a nice effect when the input is focused */
  .wood-text-input:focus {
    outline: none; /* Remove the default focus outline */
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.3);
  }
  

  .wood-text-vert{
    color: #007a21;
    text-shadow: 8px 8px 8px rgba(0, 0, 0, 0.7);

  
  }
  .wood-text-jaune{
    color: #ff00d4;
    text-shadow: 8px 8px 8px rgba(0, 0, 0, 0.7);

  
  }
  .wood-text-rouge{
    color: #a90000;
    text-shadow: 8px 8px 8px rgba(0, 0, 0, 0.7);

  
  }
  
#hebergement{
    background-image: url('/img/body-background.jpg');
    background-size: 100%;
 
 background-repeat: no-repeat;
}

.bande-top{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 12vh; /* Adjust the height as needed */
    background-color: black;
    box-shadow: -16px 16px 16px rgba(0, 0, 0, 1);
    z-index: 1;
}

.site-title {
    position: fixed;
    top: -5%;
    right: 8%;
    background-color: #33333300;
    color: #115eab;
    padding: 10px 20px;
    font-size: 74px;
    font-weight: bold;
    border-radius: 5px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
  }

  .site-title img{
    margin-top:4%;
  }

  .site-title-membre {


    float:right;
    background-color:transparent;
    color: #115eab;
    padding: 10px 20px;
    font-size: 74px;
    font-weight: bold;
    border-radius: 5px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
  }


  .scroll-to-button {

    bottom: 30px;
    right: 30px;
    background-color: #115eab;
    color: #000000;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index:999999999999999999;
  }

  .scroll-to-button:hover{
    box-shadow: rgb(0, 0, 0) 0px 0px 0.25em, rgb(0, 0, 0) 0px 0.25em 1em;
  }

/* VIDEO */

.video-section {
    width: 100%;
    height: 120vh;
   margin-top:-7% !important;



 
  }
  
  video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
/* IMAGE */

.border-box-img {
    
    border-radius: 10px;;
    box-shadow: rgba(14, 30, 37, 0.5) 0px 2px 4px 0px, rgba(14, 30, 37, 0.5) 0px 2px 16px 0px;
}

.border-box-img:hover {
    transform:scale(1.01);
}
/* Nav */




.navbar-toggler { display: none; }

.tm-nav {
    position: fixed;
    top: 0;
    left: -1px;
    width: 50%;
    z-index: 1000;  
 
}

.tm-nav ul {
    background-color: #44444400;
    display: flex;
    justify-content: space-around;

}

.nav-item { list-style: none; }

.nav-link {
    color: #999;
    padding-top: 40px;
    padding-bottom: 40px;
    display: block;
    font-size: 20px;
}

.nav-link:hover,
.nav-link.current {
    color: #43a1ff;
}


/* Nav vertical */
.navbar-toggler-V { display: none; }
.tm-nav-V {
    position: fixed;
    margin-top: 1%;
    left: 0.2%;
    width: 10%;
    z-index: 1000;
}

.tm-nav-V ul {
    background-color: #444;
    display: flex;
    flex-direction: column; /* Display the items in a column */
    justify-content: space-around;
    border-radius: 10px;
    box-shadow: rgba(135, 135, 135, 0.5) 0px 2px 4px 0px, rgba(152, 152, 152, 0.5) 0px 2px 16px 0px;
}

.nav-item-V {
    list-style: none;
    margin: 5px 0; /* Add some margin between the list items */
}

.nav-link-V {
    color: #999;
    padding: 10px 10px; /* Adjust the padding to reduce the height of each link */
    display: block;
    font-size: 20px;
}

.nav-link-V:hover,
.nav-link-V.current {
    padding: 10px 10px;
    color: #43a1ff;
}


/* Introduction */
.tm-media {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15%;
}

.tm-media img {
    width: 200px;
    height: 200px;
}

.tm-media-body {  padding-left: 30px; }

.tm-media-span {
    margin-bottom: 15px;
    display: block;
    text-align: right;
}

/* Gallery */

.tm-gallery-container {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.tm-gallery-header {
    margin-left: 15px;
    margin-right: 15px;
}

.tm-gallery {
	position: relative;
	list-style: none;
	text-align: center;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.tm-gallery figure {
	position: relative;
	z-index: 50;
	/* float: left; */
	overflow: hidden;
	margin: 15px;
	min-width: 200px;
	max-width: 250px;
	max-height: 250px;
	width: 25%;
	text-align: center;
	cursor: pointer;
}

.tm-gallery figure img {
	position: relative;
	display: block;
	min-height: 100%;
	max-width: 100%;
	opacity: 0.8;
}

.tm-gallery figure figcaption {
	padding: 1em;
	color: #fff;
	text-transform: uppercase;
	font-size: 1em;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.tm-gallery figure figcaption::before,
.tm-gallery figure figcaption::after {
	pointer-events: none;
}

.tm-gallery figure figcaption,
.tm-gallery figure figcaption > a {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
    height: 100%;
    box-sizing: border-box;
}

/* Anchor will cover the whole item by default */
/* For some effects it will show as a button */
.tm-gallery figure figcaption > a {
	z-index: 1000;
	text-indent: 200%;
	white-space: nowrap;
	font-size: 0;
	opacity: 0;
}

.tm-gallery figure h2 {
	word-spacing: -0.15em;
	font-weight: 300;
}

.tm-gallery figure h2 span { font-weight: 800; }

.tm-gallery figure h2,
.tm-gallery figure p {
	margin: 0;
}

.tm-gallery figure p {
	letter-spacing: 1px;
	font-size: 68.5%;
}

/*-----------------*/
/***** Goliath *****/
/*-----------------*/

figure.effect-goliath {
	background: #115eab;
}

figure.effect-goliath img,
figure.effect-goliath h2 {
	-webkit-transition: -webkit-transform 0.35s;
	transition: transform 0.35s;
}

figure.effect-goliath img {
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

figure.effect-goliath h2,
figure.effect-goliath p {
	position: absolute;
	bottom: 0;
	left: 0;
    padding: 30px 10px;
    text-align: center;
    width: 100%;
}

figure.effect-goliath p {
	text-transform: none;
	font-size: 90%;
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: translate3d(0,50px,0);
	transform: translate3d(0,50px,0);
}

figure.effect-goliath:hover img {
	-webkit-transform: translate3d(0,-80px,0);
	transform: translate3d(0,-80px,0);
}

figure.effect-goliath:hover h2 {
	-webkit-transform: translate3d(0,-100px,0);
	transform: translate3d(0,-100px,0);
}

figure.effect-goliath:hover p {
	opacity: 1;
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
}

.tm-gallery .tm-gallery-item.hide{ display: none; }

.tm-gallery .tm-gallery-item.show{
	display: block;
	animation: show .5s ease;
}

.tm-paging {
    display: flex;
    justify-content: center;
}

.tm-paging-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    color: #999;
    background-color: #222;
    margin: 7.5px;
}

.tm-paging-link:hover,
.tm-paging-link.active {
    background-color: #444444;
}



@keyframes show {
    0% {
    	opacity: 0;
    	transform: scale(0.9);
    }
    100% {
    	opacity: 1;
    	transform: scale(1);
    }
}

/* Contact */
.tm-contact-form {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.form-group { margin-bottom: 40px; }

.form-control {
    color: #999;
    font-size: 20px;
    font-family: 'Kumbh Sans', sans-serif;
    padding: 25px 0;
    width: 100%;
    border: none;
    border-bottom: 1px solid #666;
    background: transparent;
}

.form-control:focus {
    color: #999;
    background: transparent;
}

.mapouter {

    top: 0;
    left: 0;
}

.gmap-canvas { 
    display:flex;
    width: 40vw;
    max-height: 30vw;

 
 }
 .googleMap{
    position:relative;
 margin-left:-3%;
    border-radius: 30px;
    box-shadow: rgba(0, 0, 0, 0.6) 0px 0px 55px;

 }

.tm-copyright {
    margin-left: -50px;
    margin-bottom: -50px;
}

@media (max-width: 1200px) {
    .tm-nav { width: 0; }
    .tm-nav ul {
        position: relative;
        left: -280px;
        flex-direction: column;
        padding-top: 15px;
        padding-bottom: 15px;        
        width: 280px;
        transition: all 0.5s ease;
    }

    .tm-nav ul.show { left: 0; }

    .nav-link {
        text-align: center;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .navbar-toggler {
        display: block;
        width: 50px;
        height: 45px;
        font-size: 1.2rem;
        background-color: #444444;
        border: none;
        color: #999999;
        outline: none;
    }

    .navbar-toggler:hover { color: #115eab; }

    .tm-content {
        padding-left: 20px;
        padding-right: 20px;
        padding: 50px 20px;
    }

    .tm-copyright { margin-left: 15px; }
}

@media (max-width: 992px) {
    .tm-brand { 
        position: static;
        margin-left: auto;
        margin-right: 0;
    }

    .tm-gallery figure { width: 33.33%; }

    figcaption h2 { font-size: 1.4rem; }

    .tm-section { flex-direction: column-reverse; }

    .tm-section-col {
        flex: 0 0 100%;
        width: 100%;
        

    }

    .tm-parallax { min-height: 360px; }

    #contact .tm-parallax {
        margin-bottom: 425px;
    }
    
    .mapouter {
        top: 360px;
        width: 100%;
    }

    .gmap-canvas { width: 100%; }

    .tm-copyright {
        margin-bottom: 0;
        padding: 30px;
    }
}

@media (max-width: 600px) {
    .tm-row { flex-direction: column; }

    .tm-col {
        flex: 0 0 100%;
        width: 100%;
    }

    .tm-media img {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 560px) {
    .tm-sm-mt-30 { margin-top: 30px; }
}

@media (max-width: 516px) {
    .tm-gallery { display: block; }

    .tm-gallery figure {
        float: left;
        width: 45%;
        margin: 2.5%;
        min-width: 1px;
    }

    figure h2 { font-size: 1rem; }
}

@media (max-width: 420px) {
    .tm-media img {
        width: 100px;
        height: 100px;
    }
}