* {
  margin: 0px;
}

button {
  cursor: pointer;
}

:root {
  --action-blue: #0368FF;
  --action-blue-hover: #5899FF;
  --action-blue-disabled: #0368FF8C;

  --text-white: #F2F0FF;

  --clr-primary: var(--action-blue);
  --clr-primary-hover: var(--action-blue-hover);
  --clr-primary-disabled: var(--action-blue-disabled);

  --clr-secondary: #FF3E95;
  --clr-secondary-hover: #FF74B2;
  --clr-secondary-disabled: #FF3E958C;

  --clr-neutral-border: #637083;

  --clr-background: #FFFFFF;
  --clr-div-on-background: #F0F6FF;
  --clr-background-80: #FFFFFFCC;

  --clr-text-primary: #141C24;
  --clr-text-secondary: #344051;
  --clr-text-tertiary: #637083;

  --clr-on-primary: var(--text-white);
  --clr-on-primary-disabled: #F2F0FF8C;

  --ff-default: 'Figtree', sans-serif;
}

.dark-mode {
  --clr-primary: #F0F6FF;
  --clr-primary-hover: #CCD1D9;
  --clr-primary-disabled: #F0F6FF8C;

  --clr-background: #05070A;
  --clr-div-on-background: #141C24;
  --clr-background-80: #05070ACC;

  --clr-text-primary: #FFFFFF;
  --clr-text-secondary: #E4E7EC;
  --clr-text-tertiary: #CED2DA;

  --clr-on-primary: #141C24;
  --clr-on-primary-disabled: #141C248C;
}

.btn-primary {
  padding: 16px 44px;
  background-color: var(--clr-primary);
  color: var(--clr-on-primary);
  font-family: var(--ff-default);
  font-weight: 600;
  border-radius: 8px;
  border-color: transparent;
  transition: background-color .2s ease-in-out;
}

.btn-primary:hover {
  background-color: var(--clr-primary-hover);
}

.btn-outline {
  padding: 10px 20px;
  background-color: transparent;
  color: var(--clr-text-secondary);
  font-family: var(--ff-default);
  font-weight: 600;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid var(--clr-neutral-border);
  transition: background-color .2s ease-in-out;
}

.btn-outline:hover {
  border: 1px solid var(--clr-text-primary);
}

.footer-text {
  color: var(--clr-text-tertiary);
  font-weight: 500;
}

.brand-name-footer {
  color: var(--clr-text-secondary);
  font-weight: 700;
}

body {
  background: var(--clr-background);
  color: var(--clr-text-primary);
  font-family: var(--ff-default);
}

.nav {
  width: 100%;
  position: sticky;
  top: 0;
  display: flex;
  justify-content: center;
  background-color: var(--clr-background);
}

.navbar {
  padding-top: 12px;
  padding-bottom: 8px;
  max-width: 1200px;
  width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.startpic img {
  display: none;
}

.rightnav {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.rightnav #enquire {
  border: none;
  gap: 5px;
}

.rightnav .btn-outline {
  display: flex;
  align-items: center;
  gap: 6px;
}


#album-page {
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

#album-page .album-name {
  font-size: 56px;
  font-weight: 400;
  color: var(--clr-text-primary);
  padding-top: 44px;
}

#album-page .album-created {
  font-size: 24px;
  font-weight: 500;
  color: var(--clr-text-tertiary);
  padding-top: 8px;
  padding-bottom: 16px;
}

#album-page .gallery {
  min-height: 37vh;
}

.gallery .img-batch {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  grid-auto-rows: 160px;
  justify-items: stretch;
  gap: 8px;
  padding-bottom: 8px;
}

.gallery .img-batch .img-wrapper {
  grid-column-end: span 3;
}

.gallery .img-batch .img-wrapper:nth-child(5n+1) {
  grid-column-end: span 4;
}

.gallery .img-batch .img-wrapper:nth-child(7) {
  grid-column-end: span 4;
}

.gallery .img-batch .img-wrapper:nth-child(10) {
  grid-column-end: span 2;
}

.gallery .img-batch .img-wrapper {
  transition: all 0.3s ease-in-out;
}

.gallery .img-batch .img-wrapper:hover {
  box-shadow: 0 0px 7px 5px var(--clr-neutral-border);
}

.gallery .img-wrapper img {
  cursor: pointer;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.bottom-part {
  background-color: var(--clr-background);
  position: sticky;
  bottom: 0;
  right: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 8px;
}

.service-section {
  background-color: var(--clr-div-on-background);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 8px 20px;
  gap: 8px;
  border-radius: 12px;
  width: 90%;
  box-sizing: border-box;
  max-width: 1200px;
}

.service-text {
  color: var(--clr-text-primary);
  font-weight: 300;
  font-size: 14px;
}

.service-section .contact-btn {
  font-size: 10px;
  padding: 8px 16px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.floating-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  border-radius: 15px;
  padding: 16px 20px;
  transition: background-color .2s ease-in-out, opacity .3s ease-in;
}

.floating-button .fab-icon {
  padding-bottom: 4px;
}

.floating-button .fab-icon path {
  fill: var(--clr-on-primary);
}

#scroll-to-top {
  display: none;
  opacity: 0;
}

body.popup-open,
body.image-open {
  overflow: hidden;
}

.popup-backdrop {
  position: absolute;
  width: 100vw;
  height: 100vh;
  top: 0;
  display: none;
  background-color: var(--clr-background-80);
}

.popup-wrap {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.popup {
  z-index: 100;
  background-color: var(--clr-background);
  border: 1px solid var(--clr-neutral-border);
  border-radius: 12px;
  padding: 32px;
  margin: auto;
}

.poptop {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.share-album-text {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.28px;
}

.popup-close {
  border-color: transparent;
  border: none;
  padding: 0;
}

.popup-close:hover {
  border: none;
}

.popup-close svg {
  padding-top: 4px;
  padding-right: 1px;
}

.popup-close path {
  stroke: var(--clr-text-primary);
}

.sharetext {
  font-size: 20px;
  font-weight: 500;
  margin-top: 15px;
  margin-bottom: 5px;
  color: var(--clr-text-secondary);
}

.shareicon {
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.btn-copy {
  background-color: var(--action-blue);
  color: var(--text-white);
  padding-left: 72px;
  padding-right: 72px;
}

.btn-copy:hover {
  background-color: var(--action-blue-hover);
}

.btn-facebook {
  background-color: #1A75FF;
  padding-left: 28px;
  padding-right: 28px;
}

.btn-facebook:hover {
  background-color: #5297fe;
}

.btn-whatsapp {
  background-color: #009A59;
  padding-left: 28px;
  padding-right: 28px;
}

.btn-whatsapp:hover {
  background-color: #01CB77;
}

.btn-instagram {
  background-color: #FF487F;
  padding: 0 28px;
}

.btn-instagram:hover {
  background-color: #941E41;
}

.image-backdrop {
  position: absolute;
  width: 100vw;
  height: 100vh;
  top: 0;
  display: none;
  background-color: var(--clr-background);
}

.image-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  align-items: center;
}

.image-nav {
  display: flex;
  justify-content: space-between;
  width: 95%;
  margin: 32px auto;
}

.image-nav .image-nav-back {
  border: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.image-nav-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.image-nav-actions .btn-outline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.image-area {
  display: flex;
  justify-content: space-between;
}

.image-nav-btn-wrap {
  display: flex;
  align-items: center;
}

.image-nav-btn {
  padding: 6px;
  border-radius: 32px;
  background-color: var(--clr-div-on-background);
  color: var(--clr-text-primary);
}

.image-nav-btn:hover {
  background-color: var(--clr-neutral-border);
}

.image-disp {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 32px;
  height: 78vh;
  width: 78vw;
}

.image-disp img {
  height: 600px;
}

.image-disp.image-loading img {
  filter: blur(3.5px);
}

.imgchek {
  opacity: 0;
  width: 100px;
  height: 100px;
}

.imgchek.show {
  opacity: 1;
}

#hide {
  display: none;
}

#back {
  margin-left: 5px;
}

#next {
  margin-right: 5px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(359deg); }
 }

.loading-spinner {
  height: 16px;
  width: 16px;
  border: 6px solid var(--clr-neutral-border);
  border-radius: 100%;
  animation: spin 1s infinite linear;
}

.loading-spinner:before {
  content: '';
  display: block;
  position: absolute;
  left: -6px;
  top: -6px;
  width: 100%;
  height: 100%;
  border: 6px solid transparent;
  border-top: 6px solid var(--clr-text-primary);
  border-radius: 100%;
}

.noclick-loading {
  pointer-events: none;
  cursor: default;
}

@media only screen and (max-width:1100px) {
  .image-nav-btn-wrap {
    z-index: 5;
  }

  .image-disp img {
    height: 50vh;
  }

  .image-disp {
    margin: 25px;
  }
}

@media only screen and (max-width:850px) {
  .navbar .btn-outline {
    font-size: 0px;
    border: none;
  }

  .image-nav .btn-outline {
    border: none;
    font-size: 0;
  }

  #hide {
    display: flex;
  }

  .image-disp img {
    height: 40vh;
  }

  .image-disp {
    margin: 10px;
  }
}

@media only screen and (max-width:740px) {
  #album-page .gallery {
    min-height: 33vh;
  }
  .service-text {
    font-size: 12px;
  }
}

@media only screen and (max-width:620px) {
  .image-disp img {
    height: 35vh;
  }

  .image-disp {
    margin: 5px;
  }

  /* overrides all rules written above for grids */
  .gallery .img-batch .img-wrapper,
  .gallery .img-batch .img-wrapper:nth-child(n+7) {
    grid-column-end: span 5;
  }

  .gallery .img-batch .img-wrapper:nth-child(3n+2) {
    grid-column-end: span 6;
  }

  .gallery .img-batch .img-wrapper:nth-child(10n+1) {
    grid-column-end: span 10;
  }

  .gallery .img-batch .img-wrapper:nth-child(10n+6) {
    grid-column-end: span 4;
  }

  .gallery .img-batch .img-wrapper:nth-child(10n+7) {
    grid-column-end: span 12;
  }
}

@media only screen and (max-width:1300px) {
  .floating-button {
    bottom: 100px;
  }
}

@media only screen and (max-width:512px) {
  .popup {
    padding: 16px;
  }

  .floating-button {
    bottom: 120px;
  }

  #album-page .album-name {
    font-size: 40px;
  }

  .image-disp img {
    height: 27vh;
  }

  #album-page .album-created {
    font-size: 20px;
  }

  .btn-outline {
    padding: 14px 14px;
  }
}

@media only screen and (max-width:400px) {
  #album-page .album-name {
    padding-top: 30px;
    font-size: 32px;
  }

  .image-disp img {
    height: 22vh;
  }

  #album-page .album-created {
    font-size: 16px;
  }

  .sharetext {
    font-size: 15px;
  }
}
