@font-face {
  font-family: "Poppins";
  src: url(../Fonts/Poppins/Poppins-Regular.ttf);
}
@font-face {
  font-family: "Lora";
  src: url(../Fonts/Lora/Lora-VariableFont_wght.ttf);
}

@font-face {
  font-family: "Alkatra";
  src: url(../Fonts/Alkatra/Alkatra-VariableFont_wght.ttf);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  text-decoration: none;
  list-style: none;
}

body {
  margin: 0;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  margin-bottom: 3vw;
}

/* Edit mode CSS */
#saveChangesBtn {
  margin-top: 3vw !important;
  margin-left: 80vw;
  font-size: 1.8vw !important;
  position: fixed;
}

.account-nav {
  margin: 1px;
  margin-left: 1rem;
  border-radius: 50%;
}

.account-nav img {
  height: 5vw;
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
}

.editable-input {
  background-color: rgba(255, 255, 255, 0) !important;
  border: 1px solid rgb(255, 13, 13) !important;
  padding: 2px;
}

/* code for body */

.titleContainer {
  width: 70%;
  margin: 7vw auto 2vw auto;
  text-align: center;
}

.titleContainer h4,
.descriptionText {
  font-size: var(--font-size-xl) !important;
}

#maintext {
  text-align: center;
  font-size: var(--font-size-xxl) !important;
}

.title {
  margin: 0 auto;
  width: 90%;
}

.title h5 {
  font-size: 1.7vw !important;
}

.posts {
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.blogHeading h4 {
  font-weight: 800 !important;
  font-size: 2vw;
}

.featured {
  width: 45%;
}

.desc {
  width: 90%;
  text-align: justify;
}

.featuredpost {
  display: grid;
  width: 100%;
  padding: 0 1vw;
}

.blogDescription,
.eventType p {
  font-size: 1.3vw;
}

.featuredpost img {
  width: 30vw;
  margin: 0 auto !important;
}

.others {
  display: grid !important;
  width: 54%;
  overflow: hidden;
}
.othersImg {
  object-fit: cover;
  display: flex;
  align-items: center;
  margin: 0 auto;
}

#featuredReadmore,
.othersReadmore {
  font-size: clamp(1.1vw, calc(1.2vw + 2px), 1vw) !important;
}

.othersEventType p {
  font-size: 1.3vw !important;
}

.eventType p,
.othersEventType p {
  margin-bottom: 0 !important;
}

.othersHeading h4 {
  font-size: 1.2vw !important;
  font-weight: 800;
}

.othersDescription {
  font-size: 1.1vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.post {
  margin-bottom: 1vw;
}

.othersDesc {
  display: flex;
  flex-direction: column;
}

.btn-primary {
  display: flex;
  align-self: flex-end;
  text-align: center;
}

button.btn-primary,
button.btn-secondary {
  font-size: 14px !important;
}
/* end of code for body */

/* code for modal */

.modal-header h5 {
  font-size: 1.7vw;
  font-weight: 700;
  margin: 0 auto !important;
  text-align: center;
}

.half {
  width: 45%;
}

input.headerEdit {
  width: 30vw;
}

.bookNowBtn {
  width: 15vw;
}

.modal-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.8vw;
}

.modal-body img {
  width: 50%;
  margin: 1vw auto !important;
}

.blog-full-content {
  width: 80%;
  margin: 1vw auto !important;
  text-align: center;
  font-size: clamp(1.3vw, 1.1vw, 1vw);
}

.text-muted {
  margin-bottom: 0;
}

.modal-footer button {
  font-size: 1.3vw;
}
/* end of code for modal */

.construction-wrapper {
  margin-top: 8vw;
  margin-bottom: 20vw;
}

.construction-header {
  font-size: 2vw;
  font-weight: bold;
}

.construction-text {
  color: #6c757d;
  margin-bottom: 20px;
  text-align: justify;
}

.construction-image {
  width: 40vw;
  height: auto;
}

.fb-gallery {
  width: 90%;
  position: relative;
}

.fb-grid {
  display: grid;
  gap: 5px;
}

.fb-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.fb-grid-3 {
  grid-template-columns: repeat(2, 1fr);
}

.fb-3-layout {
  display: flex;
  width: 100%;
  gap: 6px;
}

/* LEFT — big image */
.fb-3-left {
  flex: 2;
}

.fb-3-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* RIGHT — stacked images */
.fb-3-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fb-3-right img {
  width: 100%;
  height: 50%;
  object-fit: cover;
  border-radius: 8px;
}

.featured .fb-img {
  object-fit: cover;
}

.fb-img {
  width: 100%;
  border-radius: 6px;
}

.fb-img-1 {
  height: 40%;
  border-radius: 6px;
}

.fb-more-wrapper {
  position: relative;
}

.fb-more-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  font-weight: bold;
  border-radius: 6px;
}

.additional-images {
  overflow-y: scroll;
}

/* Tablet size */
@media only screen and (min-width: 600px) and (max-width: 1025px) {
  .titleContainer {
    margin-top: 6rem !important;
  }

  .profile {
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    align-items: center;
  }

  .blogDescription {
    font-size: 2.3vw;
  }

  button.btn {
    margin-left: 1.5vw;
  }

  .post img {
    margin-top: 2vw;
    margin-bottom: 2vw;
  }
}

/* Tablet portrait */
@media only screen and (min-width: 600px) and (max-width: 1025px) and (orientation: portrait) {
  .titleContainer {
    margin-top: 16vw;
  }

  #maintext {
    font-size: clamp(3.2vw, calc(2.9vw + 2px), 2.6vw) !important;
    width: 100% !important;
  }

  .titleContainer h4 {
    font-size: clamp(2.4vw, calc(2.2vw + 2px), 1.8vw) !important;
  }

  .posts {
    flex-direction: column;
    width: 80%;
    justify-content: center;
  }

  .post {
    width: 100%;
  }

  .title {
    width: 70%;
  }

  /* code for modal */

  .modal-header h5 {
    font-size: clamp(2.5vw, 2.3vw, 2vw);
  }

  .btn-close {
    margin-left: -3vw !important;
  }

  .bookNowBtn {
    width: 12vw;
  }

  .modal-body img {
    width: 40%;
    margin: 2vw auto 1vw auto !important;
  }

  .blog-full-content {
    width: 80%;
    margin: 1vw auto !important;
    text-align: center;
    font-size: clamp(2.1vw, 1.9vw, 1.7vw);
  }

  .text-muted {
    text-align: center;
    font-size: clamp(1.8vw, 1.6vw, 1.4vw);
  }

  .modal-footer button {
    font-size: 1.7vw;
  }

  /* end of code for modal */

  .featured {
    width: 100%;
    margin: 0 auto;
  }

  .others .post,
  .featured {
    border: 1px solid gray;
    padding: 3%;
    border-radius: 5%;
  }

  .others .post {
    margin-left: auto;
    margin-right: auto;
  }
  .featuredpost {
    justify-content: center;
  }

  .featured img {
    width: 70%;
  }

  .featuredpost,
  .featured img,
  .desc,
  .post img {
    margin: 0 auto;
  }

  .blogHeading h4 {
    font-size: clamp(2.8vw, calc(2.4vw + 2px), 2.1vw) !important;
  }

  .blogDescription p {
    font-size: clamp(1.9vw, calc(1.7vw + 2px), 1.4vw) !important;
  }

  .desc {
    width: 95%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  #featuredReadmore {
    font-size: 1.4vw !important;
  }

  .others {
    width: 100% !important;
  }

  .post img {
    margin-top: 2vw;
    margin-bottom: 2vw;
  }

  .othersEventType p,
  .othersReadmore {
    font-size: clamp(1.4vw, calc(1.4vw + 2px), 1.2vw) !important;
  }

  .othersHeading h4,
  .eventType p {
    font-size: clamp(2.1vw, calc(1.6vw + 2px), 1.4vw) !important;
  }

  .othersDescription {
    font-size: clamp(1.7vw, calc(1.4vw + 2px), 1.2vw) !important;
  }
}

/* Phone size */
@media screen and (max-width: 599px) {
  #maintext {
    font-size: clamp(3.6vw, calc(3.2vw + 2px), 2.9vw) !important;
    width: 100% !important;
  }

  .titleContainer {
    margin-top: 15vw !important;
  }
  .titleContainer h4 {
    font-size: clamp(2.9vw, calc(2vw + 2px), 1.9vw) !important;
  }

  .title h5 {
    font-size: clamp(2.4vw, calc(2.2vw + 2px), 1.8vw) !important;
  }

  .posts {
    flex-direction: column;
    width: 90%;
    justify-content: center;
  }

  .post {
    width: 100%;
    margin-top: 1.5vw;
  }

  .title {
    width: 70%;
  }

  .featured {
    width: 90%;
    margin: 0 auto;
  }
  .featuredpost {
    justify-content: center;
  }

  .others .post,
  .featured {
    border: 1px solid gray;
    padding: 3%;
    border-radius: 5%;
  }

  button.bookNowBtn {
    width: 30% !important;
  }

  .others .post {
    margin-left: auto;
    margin-right: auto;
  }

  .featured img {
    width: 65vw;
  }

  .othersDesc {
    padding: 0 !important;
  }

  .featuredpost,
  .featured img,
  .desc,
  .post img {
    margin: 0 auto;
  }

  .blogHeading h4 {
    font-size: clamp(3.3vw, calc(2.8vw + 2px), 2.6vw) !important;
  }

  .blogDescription {
    font-size: clamp(2.4vw, calc(2vw + 2px), 1.8vw) !important;
  }

  .blog-full-content {
    font-size: 12px;
  }

  .modal-header h5 {
    font-size: unset;
  }

  .desc {
    width: 95%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  #featuredReadmore {
    font-size: clamp(2.7vw, calc(2.3vw + 2px), 2.1vw) !important;
  }

  button.btn-primary,
  button.btn-secondary {
    font-size: 12px !important;
  }

  #featuredReadmore,
  .othersReadmore {
    margin-top: 0 !important;
    padding: 1vw 2vw !important;
  }

  .others {
    width: 90% !important;
    padding: 0 !important;
    margin-left: auto;
    margin-right: auto;
  }

  .othersImg,
  .othersDesc {
    width: 50% !important;
  }

  p.othersEventType,
  .othersReadmore {
    font-size: clamp(2.1vw, calc(1.7vw + 2px), 1.5vw) !important;
  }

  .othersHeading h4,
  .eventType p {
    font-size: clamp(2.7vw, calc(2.4vw + 2px), 2.1vw) !important;
  }

  .othersDescription {
    font-size: clamp(2.2vw, calc(1.9vw + 2px), 1.7vw) !important;
  }
}
