/**
FONTS AND SIZE
 */
html *
{
   font-family: Cambria !important;
   font-style: normal;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.portfolio-container {
    width: 75%;
    max-width: 80rem;
    margin: auto;
    padding: 0 1.5rem;
    height: 450;
}

.image-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: auto;
    grid-gap: 1.5rem;
    grid-template-areas:
        'img-3 img-3 img-4 img-4'
        'img-3 img-3 img-5 img-5'
        'img-1 img-1 img-2 img-2'
        'img-7 img-7 img-6 img-6'
        'img-8 img-8 img-6 img-6'
        'img-9 img-9 img-10 img-10'
        'img-9 img-9 img-11 img-11'
        'img-12 img-12 img-13 img-13'
        'img-15 img-15 img-14 img-14'
        'img-16 img-16 img-14 img-14';
    margin-top: 50px;
    margin-bottom: 50px;
}

.image-gallery a {
    width: 100%;
    height: 25rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.image-gallery a i {
    color: rgba(255, 255, 255, .6) ;
    font-size: 2rem;
    position: relative;
    z-index: 100;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, .6);
    border-radius: .4rem;
    opacity: 0;
    transition: opacity .5s;
}

.image-gallery a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,.8);
    opacity: 0;
    transition: opacity .5s;
}

.image-gallery a:hover i,
.image-gallery a:hover::before {
    opacity: .7;
}

.img-1 {
    grid-area: img-1;
    background-image: url("../img/portfolio/TMF_A13.webp");
}

.img-2 {
    grid-area: img-2;
    background-image: url("../img/portfolio/TMF_A12.webp");
}

.img-3 {
    grid-area: img-3;
    min-height: 51.5rem; /* img height * 2 + gap* => 25 * 2 + 1.5 */
    background-image: url("../img/portfolio/TMF_A16.webp");
}

.img-4 {
    grid-area: img-4;
    background-image: url("../img/portfolio/TMF_A11.webp");
}

.img-5 {
    grid-area: img-5;
    background-image: url("../img/portfolio/TMF_A22.webp");
}

.img-6 {
    grid-area: img-6;
    min-height: 51.5rem;
    background-image: url("../img/portfolio/TMF_A21.webp");
}

.img-7 {
    grid-area: img-7;
    background-image: url("../img/portfolio/TMF_A20.webp");
}

.img-8 {
    grid-area: img-8;
    background-image: url("../img/portfolio/TMF_A18.webp");
}

.img-9 {
    grid-area: img-9;
    min-height: 51.5rem;
    background-image: url("../img/portfolio/TMF_A17.webp");
}

.img-10 {
    grid-area: img-10;
    background-image: url("../img/portfolio/TMF_A14.webp");
}

.img-11 {
    grid-area: img-11;
    background-image: url("../img/portfolio/TMF_A15.webp");
}

.img-12 {
    grid-area: img-12;
    background-image: url("../img/portfolio/TMF_A25.webp");
}

.img-13 {
    grid-area: img-13;
    background-image: url("../img/portfolio/TMF_A24.webp");
}

.img-14 {
    grid-area: img-14;
    min-height: 51.5rem; /* 25 * 2 + 1.5*/
    background-image: url("../img/portfolio/TMF_A23.webp");
}

.img-15 {
    grid-area: img-15;
    background-image: url("../img/portfolio/TMF_A19.webp");
}

.img-16 {
    grid-area: img-16;
    background-image: url("../img/portfolio/TMF_A26.webp");
}

@media screen and (max-width: 900px)
{
    .image-gallery{
        grid-template-areas:
            'img-3 img-3 img-3 img-3'
            'img-4 img-4 img-4 img-4'
            'img-6 img-6 img-6 img-6'
            'img-5 img-5 img-5 img-5'
            'img-7 img-7 img-7 img-7'
            'img-8 img-8 img-8 img-8'
            'img-9 img-9 img-9 img-9'
            'img-14 img-14 img-14 img-14'
            'img-16 img-16 img-16 img-16'
            'img-15 img-15 img-15 img-15'
            'img-10 img-10 img-10 img-10'
            'img-11 img-11 img-11 img-11'
            'img-12 img-12 img-12 img-12'
            'img-13 img-13 img-13 img-13'
            'img-1 img-1 img-1 img-1'
            'img-2 img-2 img-2 img-2';
    }

    .img-1 {
        min-height: 25rem;
    }

    .img-3 {
        min-height: 25rem;
    }

    .img-9 {
        min-height: 25rem;
    }

    .img-6 {
        min-height: 25rem;
    }

    .img-14 {
        min-height: 25rem;
    }
}

h1, h2, h3, h4, h5, p, a, li {
    font-family: 'Cambria', 'Times New Roman', serif !important;
}
.web-desc {
    font-size: 16pt;
}

.contact-button {
    transition-duration: 0.4s;
    cursor: pointer;
    background-color: #ef1d1a

}

.contact-button:hover {
    background-color: #c41b18;
    border-color: white;
    color: white;
  }

.google-map-container {
    overflow-x: hidden;
    overflow-y: hidden;
    position: relative;
    height: 100%;
    padding-bottom:100%;
}

.google-map-container iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

.cambria-medium-w400 {
    font-weight: 400;
    font-size: medium;
}

.cambria-large-w400 {
    font-weight: 400;
    font-size: large;
}

.cambria-larger-w400 {
    font-weight: 400;
    font-size: larger;
}

.cambria-xl-w500 {
    font-weight: 500;
    font-size: x-large;
}

.cambria-xxl-w500 {
    font-weight: 500;
    font-size: xx-large;
}

input[type="checkbox"]:checked {
    background-color: #ef1d1a;
}

/**
MARGINS AND PADDINGS
CUSTOM BOXES
 */
 .custom-margin-xs {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
}

.custom-margin-small {
    margin-top: 5rem !important;
    margin-bottom: 5rem !important;
}
.custom-margin-small-top {
    margin-top: 5rem !important;
}
.custom-margin-medium {
    margin-top: 7rem !important;
    margin-bottom: 7rem !important;
}
.custom-margin-medium-top {
    margin-top: 7rem !important;
}
.custom-margin-full {
    margin-top: 13rem !important;
    margin-bottom: 13rem !important;
}
.custom-margin-full-top {
    margin-top: 13rem !important;
}
.custom-padding-small{
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}
.custom-padding-medium {
    padding-top: 7rem !important;
    padding-bottom: 7rem !important;
}
.custom-padding-medium-top {
    padding-top: 7rem !important;
}
.custom-padding-full {
    padding-top: 13rem !important;
    padding-bottom: 13rem !important;
}

.bg-danger {
    background-color: green !important;
}
.custom-p-5{
    padding: 150px !important;
}
/**
IMAGE LINK
 */
.image-link-overlay {
    background-color: #2f2f2f;
    padding: 0;
}
.image-link {
    object-fit: cover;
    opacity: 0.5;
}
.image-link-overlay:hover {
    opacity: 0.9;
}

.image-text-centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.custom-icon-color {
    color: #f0a73f;
}

/**
PILL LINK
 */
.pill-link-overlay {
    background-color: #2f2f2f;
    padding: 0;
    opacity: 1;
}
.pill-link {
    object-fit: cover;
}
.pill-text-centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    visibility: hidden;
    opacity: 0;

    /* transition effect. not necessary */
    transition: opacity .5s, visibility .5s;
}
.pill-link-overlay:hover .pill-link {
    opacity: 0.2;
    transition: opacity .2s, visibility .2s;
}
.pill-link-overlay:hover .pill-text-centered {
    visibility: visible;
    opacity: 1;
}

/**
NAVIGATION
NAV LINK
 */
.nav-link {
    font-size: 1.3em !important;
}

/**
COLORS
 */
.font-custom-red{
    color: #ef1d1a;
}
.bg-custom-red{
    background-color: #ef1d1a;
}
.btn-custom-red{
    background-color: #ef1d1a;
    color: #f2f2f2;
}
.btn-custom-red:hover{
    background-color: #e01b19;
    color: #f2f2f2;
}

.font-custom-orange{
    color: #f0a73f;
}
.bg-custom-orange{
    background-color: #f0a73f;
}
.btn-custom-orange{
    background-color: #f0a73f;
    color: #f2f2f2;
}
.btn-custom-orange:hover{
    background-color: #e29a33;
    color: #f2f2f2;
}

.customers-portfolio h4 {
    font-weight: bolder;
    font-size: 20pt;
    color: #565555;
}

/**
IMAGE PILL
 */
.nav-pills {
    background-color: transparent !important;
}
.nav-pills .nav-link.active {
    color: #f0a73f;
    background-color: transparent !important;
}

/**
CALL US IMAGE
 */
.call-us-bg {
    background-image: url("../img/hjalmar.webp");
    min-height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.custom-pdf-padding {
    margin-left: 10%;
    margin-right: 10%;
    margin-top: 5%;
    margin-bottom: 0%;
}

#menuBar ul li.active>a,
a[aria-expanded="true"] {
    color: #b62732;
}

#invoiceTable {
    table-layout:fixed;
    width: 99% !important;
}

#customerTable {
    table-layout:fixed;
    width: 99% !important;
}

#bodyFormControl {
    white-space: pre-line;
}

@media (min-width: 1200px) {
    .nav-item {
        margin-left: 10px;
    }
}

@media (max-width: 800px) {
    .proposal-button {
        width: 100% !important;
    }
}

@media print {
    body{
        width: 21cm;
        height: 29.7cm;
        margin-left: 20mm;
        margin-right: 20mm;
   }
}
