   html, body {
    margin: 0;
    height: 100%;
  	}
  	
  body {
	/*grid-template-rows: auto 200 1fr; /* first div auto height, second takes remaining space */
	grid-template-columns: auto ;
	height: 100vh;
    overflow-y: scroll;
	overflow-x:hidden;	
	justify-content: center;	
  }
.grid-container {
  display: grid;
  grid-template-columns: auto ;
  gap: 10px;
  padding: 10px;
}

.grid-container > div {
    color:#000;
  padding: 10px;
  /* font-size: 30px;
  text-align: center; */
}

.divTitulo{
	grid-column: 1/1;
	position: fixed;
	display: flex;
 	justify-content: center;
	padding-top: 50px;
	width: 100%;
}

.envelope {
	display:grid;
	width:100%;
	position: absolute;
	/*left:10px;*/
	gap: 10px;
	padding-top: 1px;
	overflow-x: auto;
	top: 90px;
   /* min-width: 1000px;
   height: 90%; */
}
.thumbs {

    /*background: lightblue;	*/
	display:grid;
	grid-template-columns: repeat(8, 100px);
	grid-template-rows:repeat(2,100px); 
	grid-gap: 7px;
	margin-left:auto;
	margin-right: auto;
	overflow-x: auto;
	padding: 10px 10px 10px 10px;
  box-shadow: 5px 5px 10px 2px rgba(0, 0, 0, 0.5);
  /*justify-content:center;*/
 /* flex-wrap:wrap;*/
  /*width:700px;*/
  width: auto;
  max-width:100%;
  height: auto;
  @media all and (max-width: 760px) 
	{
    grid-template-columns: repeat(15, 100px);
	grid-template-rows: repeat(1, 100px); 
	
	}
   /*position: absolute;
  left: 10%;*/
  
  
  > a {
	display: grid;  
    width:auto;
    height:auto;
    margin:10px;
    overflow:hidden;
    border-radius:5px;
	gap:10px;
	box-shadow: 5px 5px 10px 2px rgba(0, 0, 0, 0.5);
    /*box-shadow:0 0 0 3px white, 0 5px 8px 3px rgba(black, 0.6);*/
    img {
      transform:scale(1);
      transition:transform 0.3s ease-in-out;
      filter:grayscale(50%);
      min-width:100%;
      min-height:100%;
      max-width:100%;
      max-height:100%;
    }
    &:hover {
      img {
        transform:scale(1.1);
        filter:grayscale(0%);
      }
    }
  }
}

 .thumbs img {
    cursor: pointer;
    transition: transform 0.3s ease;
	 object-fit: cover;
    display: block;
  }

  .tumbs img:hover {
    transform: scale(1.1);
  }
 
 #imgViewer {
    position: absolute;
    width: 52px;
    height: auto;
    opacity: 0;
    pointer-events: none;
    transition:
      top 0.8s ease,
      left 0.8s ease,
      transform 0.8s ease,
      opacity 0.5s ease;
  }
/* The container that holds imgViewer */
.right {
	margin-left: auto;
	margin-right: auto;
	position: relative; /* <— makes imgViewer’s coordinates relative to this box */
	width: 379px;
	height: 500px;
	/**/
	background-position: left;
	background-repeat: no-repeat;
	overflow:hidden;
}

.placa {
	position: relative;
	margin-left: auto;
	margin-right: auto;

	/* width: 379px;
	height: 500px;
	background-image: url('palm beach/mapa palm beach.png' );
	background-position: left;
	background-repeat: no-repeat; */
	overflow:hidden;
}


 #imgPointer {
    position: absolute;
    width: 76px;
    height: auto;
    opacity: 0;
    pointer-events: none;
    transition:
      top 0.5s ease,
      left 0.5s ease,
      transform 0.5s ease,
      opacity 0.3s ease;
  }
/* The container that holds imgPointer */

.mapaGeral {
	margin-top: auto;
	margin-bottom:0px;
	position:relative; /* <— makes imgPointer’s coordinates relative to this box  */
	width:482px;
	height: 678px;
	background-image: url('images/sydney and nb.png'); 
	background-position: left bottom;
	background-repeat: no-repeat;
	overflow:hidden;
	box-shadow: 5px 5px 10px 2px rgba(0, 0, 0, 0.5);
}

.imageA {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;    /* make all A images fill container */
  height: 100%;
  object-fit: cover; /* optional — keep proportions */
  opacity: 0;     /* start invisible */
  transition: none; /* instant visibility (no fade) */
}


 
.lightbox {
  position:fixed;
  background:rgba(black,0.5);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height:100%;
  width:100%;
  left:0;
  top:0;
  transform:translateY(-100%);
  opacity:0;
  z-index: 50;
  transition:opacity 0.5s ease-in-out;
  &:has(div:target) {
    transform:translateY(0%);
    opacity:1;
  }
  a.nav {
    text-decoration:none;
    color:black;
    font-size:40px;
	text-shadow:0 2px 2px rgba(black,0.8);
    opacity:0.5;
    font-weight:900;
    &:hover {
      opacity:1;
	  font-size:44px;
    }
  }
  .target {
    position:absolute;
    height:100%;
    width:100%;
    display:flex;
    transform:scale(0);
    align-items:center;
    justify-content:space-between;
    *:first-child,*:last-child {
      flex:0 0 100px;
      text-align:center;
      @media all and (max-width:390px){
        flex:0 0 50px;
      }
    }
    .content {
      transform:scale(0.9);
      opacity:0;
      flex:1 1 auto;
      align-self: center;
      max-height:100%;
      min-height:0;
      max-width:calc(100% - 200px);
      min-width:0;
      border-radius:5px;
      overflow:hidden;
      box-shadow:0 0 0 3px white, 0 5px 8px 3px rgba(black, 0.6);
     /* transition:transform 0.25s ease-in-out,opacity 0.25s ease-in-out;*/
      img {
        min-width:100%;
        min-height:100%;
        max-width:calc(100% - 200px);
        max-height:calc(100vh - 40px);
        display:block;
        margin:0;
		object-fit: contain;
      }
    }
    &:target {
      transform:scale(1);
      .content {
        transform:scale(1);
        opacity:1;
      }
    }
  }
  .close {
    position:absolute;
    right:10px;
    top:10px;
  }
}
.pWood{
	position:absolute;
	color: #ffdd78;
	font-size:30px;
	font-weight:bold;
	text-shadow: 3px 3px 4px rgba(0, 0, 0, 1);
}	
@media (max-width: 390px) {
  .envelope{
    flex-direction: column;
  }
  .right, .thumbs {
    width: 100%;
  }
}