body {
    font-family: 'Montserrat', sans-serif;
    margin: 20px;
    padding: 0;
    /*background-color: #f5f5f5;*/
    background-color: #fff;
    color: #333;
    line-height: 1.6;
}

header {
    text-align: center;
    padding: 50px 0;
    color: #333;
}

h1, h2 {
    color: #;
    font-family: 'Kanit', sans-serif;
    font-weight: 300;
}

a {color:#371F76;}

p {
    font-size: 15px;
    line-height: 1.8;
    font-family: 'Montserrat';
}

.container {
    background-color: #fff;
    padding: 20px;
    /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);*/
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin-bottom: 10px;
}

footer {
    text-align: center;
    padding: 10px;
    color: #fff;
    position: fixed;
    width: 100%;
    bottom: 0;
}

.caption-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.3s ease-in-out;
    }

.caption-overlay:hover {
opacity: 1;
    }

.caption-overlay h5,
.caption-overlay p {
margin: 0;
color: #fff;
text-align: center;
    }

.modal {border:none!important;visibility: visible;}
.modal-dialog {
    max-width: 100%;
    border:none!important;
}

.modal-content {
    width: 100%;
    background:rgba(0,0,0,0);
    border:none!important;
}

.modal-header {
    color: #333;
    border-bottom: none;
    padding: 40px;
    background: rgba(0,0,0,0);
    margin-top: -40px;
}

.modal-title {
    font-weight: bold;
}

.modal-body {
    padding: 20px;
    text-align: center;
    background:rgba(0,0,0,0);
}

.modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.modal-body img:hover {
    font-family: "Material Icons";
    cursor:'\e8ff';
    content:'\e8ff';
    cursor: URL('zoomin.svg'), auto; 
    cursor: URL('zoomin.svg'), auto; 
    cursor: URL('zoomin.svg'), auto;
    fill:#ffffff;
}

.modal-body img.zoomed:hover {
    font-family: "Material Icons";
    cursor:'\e900';
    content:'\e900';
    cursor: URL('zoomout.svg'), auto; 
    cursor: URL('zoomout.svg'), auto; 
    cursor: URL('zoomout.svg'), auto;
    fill:#ffffff;
}

.material-symbols-sharp {
  font-variation-settings:
  'FILL' 1,
  'wght' 100,
  'GRAD' 0,
  'opsz' 24
}

.material-symbols-rounded {
  font-variation-settings:
  'FILL' 1,
  'wght' 200,
  'GRAD' 200,
  'opsz' 48
}

.modal-footer {
    border-top: none;
}

/* Close button in the modal */
.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5em;
    color: #fff;
    cursor: pointer;
}

.avatar {
  position: relative;
  max-width: 128px;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 50%;
}

.fw-1 {font-weight: 100}
.fw-2 {font-weight: 200}
.fw-3 {font-weight: 300}
.fw-4 {font-weight: 400}
.fw-5 {font-weight: 500}
.fw-6 {font-weight: 600}
.fw-7 {font-weight: 700}
.fw-8 {font-weight: 800}
.fw-9 {font-weight: 900}

/* DYNAMIC SHIT */
:root {
    --max-image-width-percentage: 50%; /* Adjust this percentage as needed */
}
.dynamic-max-width-image {
        max-width: calc(100vw - var(--max-image-width-percentage))!important;
        width: 100%;
        height: auto;
        border-radius: 8px;
}
/* Media query for mobile devices */
@media (max-width: 767px) {
    .dynamic-max-width-image {
        max-width: 100vw !important;
    }
}

.image-zoom {
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    transform: scale(1);
    z-index: 0;
    position: relative;
}

.image-zoom.zoomed {
    transform: scale(1.4);
    transition: transform 0.3s ease-in-out;
    z-index: 2;
    position: relative;
}

.underline {border-bottom: 1px solid #f2f2f2;}

/*
.thumbnail {
    min-height:260px;
    max-height:260px;
    overflow:hidden;
    display: flex;
    justify-content: center;
    position:relative;

}


.p-port {padding:64px;}
*/

.thumbnail {
    opacity: 0;
}

.thumbnail.loaded {
    opacity: 1; 
    transition: opacity 2s ease;
}


.rounded {border-radius: 6px!important;}

.row > *
{
  padding-right: calc(var(--bs-gutter-x) * .75)!important;
  padding-left: calc(var(--bs-gutter-x) * .75)!important;
  margin-top: calc(var(--bs-gutter-x) * .75)!important;
}

.bg-white {background:#fff;}

.container-fluid {padding-left: 8%;padding-right: 8%;}

.w-100 {width:100%!important;}
.w-75 {width:75%!important;}
.text-left {text-align: left;}

.foot {font-size: 12px;}
